.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 -
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
.PHONY: wsdl wsdl-install wsdl-clean
-
##########
tests-install:
mkdir -p $(DESTDIR)/usr/share/sfa/tests
##########
tags:
- find . -type f | egrep -v '/\.git/|/\.svn/|TAGS|\.py[co]$$|\.doc$$|\.html$$|\.pdf$$|~$$' | xargs etags
+ find . -type f | egrep -v '/\.git/|/\.svn/|TAGS|\.py[co]$$|\.doc$$|\.html$$|\.pdf$$|~$$|\.png$$|\.svg$$|\.out$$' | xargs etags
.PHONY: tags
signatures: