irclib -- Internet Relay Chat (IRC) protocol client library

Makefile 956B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. VERSION := `sed -n -e '/VERSION = /{s/VERSION = \(.*\), \(.*\), \(.*\)/\1.\2.\3/;p;}' <irclib.py`
  2. DISTFILES = \
  3. COPYING \
  4. ChangeLog \
  5. Makefile \
  6. README \
  7. dccreceive \
  8. dccsend \
  9. ircbot.py \
  10. irccat \
  11. irccat2 \
  12. irclib.py \
  13. python-irclib.spec \
  14. servermap \
  15. setup.py \
  16. testbot.py
  17. PACKAGENAME = python-irclib-$(VERSION)
  18. all: $(DISTFILES)
  19. setup.py: setup.py.in
  20. sed 's/%%VERSION%%/'$(VERSION)'/g' setup.py.in >setup.py
  21. python-irclib.spec: python-irclib.spec.in
  22. sed 's/%%VERSION%%/'$(VERSION)'/g' python-irclib.spec.in >python-irclib.spec
  23. dist: $(DISTFILES)
  24. mkdir $(PACKAGENAME)
  25. cp -r $(DISTFILES) $(PACKAGENAME)
  26. tar cvzf $(PACKAGENAME).tar.gz $(PACKAGENAME)
  27. zip -r9yq $(PACKAGENAME).zip $(PACKAGENAME)
  28. rm -rf $(PACKAGENAME)
  29. cvstag:
  30. ver=$(VERSION); echo cvs tag version_`echo $$ver | sed 's/\./_/g'`
  31. clean:
  32. rm -rf *~ *.pyc build python-irclib.spec setup.py
  33. .PHONY: all doc dist cvstag clean