DESTDIR="/"
PREFIX=/usr
##########
-all: python wsdl
+all: python
-install: python-install wsdl-install tests-install
+install: python-install tests-install
-clean: python-clean wsdl-clean
+clean: python-clean
uninstall: python-uninstall tests-uninstall
# postinstall steps - various cleanups and tweaks for a nicer rpm
python-install:
- python setup.py install --prefix=$(PREFIX) --root=$(DESTDIR)
+ python3 setup.py install --prefix=$(PREFIX) --root=$(DESTDIR)
chmod 444 $(DESTDIR)/etc/sfa/default_config.xml
rm -rf $(DESTDIR)/usr/lib*/python*/site-packages/*egg-info
rm -rf $(DESTDIR)/usr/lib*/python*/site-packages/sfa/storage/migrations
(cd $(DESTDIR)/usr/bin ; ln -s sfi.py sfi; ln -s sfascan.py sfascan; ln -s sfaadmin.py sfaadmin)
python-clean: version-clean
- python setup.py clean
+ python3 setup.py clean
# rm $(init)
version-clean:
rm -f sfa/util/version.py
.PHONY: python version python-install python-clean version-clean
-##########
-wsdl:
- $(MAKE) -C wsdl
-
-# propagate DESTDIR from the specfile
-wsdl-install:
- $(MAKE) -C wsdl install
-
-wsdl-clean:
- $(MAKE) -C wsdl clean
-
-.PHONY: wsdl wsdl-install wsdl-clean
##########
tests-install:
# this target is still helpful to produce the readme in html from README.md
index.zip index.html: README.md
- python readme.py
+ python3 readme.py
# I need to run this on my mac as my pypi
# run git pull first as this often comes afet a module-tag