X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=c122cf3dfa2d0129c70f6236d137b42a7956c739;hb=786198b5b3084d9b5b500a7459dc02826d21a634;hp=2446adcebbe5a110b2c45ed7e62e51f3f9e9035f;hpb=dd5f700e6e2f9969d7c37d3cef3c3624adffe3f5;p=sfa.git diff --git a/Makefile b/Makefile index 2446adce..c122cf3d 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,15 @@ uninstall: python-uninstall tests-uninstall .PHONY: all install clean uninstall +VERSIONTAG=should-be-redefined-by-specfile +SCMURL=should-be-redefined-by-specfile + ########## -python: +python: version + +version: sfa/util/version.py +sfa/util/version.py: sfa/util/version.py.in + sed -e "s,@VERSIONTAG@,$(VERSIONTAG),g" -e "s,@SCMURL@,$(SCMURL),g" sfa/util/version.py.in > $@ xmlbuilder-install: cd xmlbuilder-0.9 && python setup.py install --root=$(DESTDIR) && cd - @@ -25,11 +32,14 @@ python-install: python setup.py install --root=$(DESTDIR) chmod 444 $(DESTDIR)/etc/sfa/default_config.xml -python-clean: +python-clean: version-clean python setup.py clean - rm $(init) +# rm $(init) -.PHONY: python python-install python-clean xmlbuilder-install +version-clean: + rm -f sfa/util/version.py + +.PHONY: python version python-install python-clean version-clean xmlbuilder-install ########## wsdl: $(MAKE) -C wsdl @@ -43,7 +53,6 @@ wsdl-clean: .PHONY: wsdl wsdl-install wsdl-clean - ########## tests-install: mkdir -p $(DESTDIR)/usr/share/sfa/tests