X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=Makefile;h=02e7246d8b36be850f83129ad6ae632b0f93cfb0;hp=94c7a296b76a8e7187a00e056333be0e4b1cf876;hb=75899ea9c4dbc29e3bb382a25b1f99730d5645c3;hpb=80846fa1ed82047adef59ad390528008fa2cd55e;ds=inline diff --git a/Makefile b/Makefile index 94c7a29..02e7246 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,16 @@ # ########## -all: +all: version build + +VERSIONTAG=should-be-redefined-by-specfile +SCMURL=should-be-redefined-by-specfile + +version: sface/version.py +sface/version.py: sface/version.py.in + sed -e "s,@VERSIONTAG@,$(VERSIONTAG),g" -e "s,@SCMURL@,$(SCMURL),g" sface/version.py.in > $@ + +build: version python setup.py build install: @@ -12,8 +21,7 @@ install: --install-scripts=$(DESTDIR)/$(bindir) \ --install-data=$(DESTDIR)/$(datadir) - tags: find . '(' -name '*.py' -o -name Makefile ')' | xargs etags -.PHONY: tags +.PHONY: all version build install tags