Commits

Anonymous committed e90aaab

Don't require GNU make.

Comments (0)

Files changed (2)

+2005-01-19  Joel Rosdahl  <joel@rosdahl.net>
+
+	* Makefile: Don't require GNU make.
+
 2005-01-19  Jeff Huang  <keltus@users.sourceforge.net>
 
 	* ircbot.py (IRCDict.__iter__): Added __iter__ method for IRCDict.
-VERSION := $(shell sed -n -e '/VERSION = /{s/VERSION = \(.*\), \(.*\), \(.*\)/\1.\2.\3/;p;}' <irclib.py)
+VERSION := `sed -n -e '/VERSION = /{s/VERSION = \(.*\), \(.*\), \(.*\)/\1.\2.\3/;p;}' <irclib.py`
 
 DISTFILES = \
     COPYING \
 
 all: $(DISTFILES)
 
-%: %.in
-	sed 's/%%VERSION%%/$(VERSION)/g' $< >$@
+setup.py: setup.py.in
+	sed 's/%%VERSION%%/'$(VERSION)'/g' $< >$@
+
+python-irclib.spec: python-irclib.spec.in
+	sed 's/%%VERSION%%/'$(VERSION)'/g' $< >$@
 
 dist: $(DISTFILES)
 	mkdir $(PACKAGENAME)
 	rm -rf $(PACKAGENAME)
 
 cvstag:
-	cvs tag version_`echo $(VERSION) | sed 's/\./_/g'`
+	ver=$(VERSION); echo cvs tag version_`echo $$ver | sed 's/\./_/g'`
 
 clean:
 	rm -rf *~ *.pyc build python-irclib.spec setup.py