summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-27 13:13:03 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-27 13:13:03 -0400
commit1a04b752443d805ebe19fa9748becb35c4aeaff8 (patch)
tree5fca9f57502b1168bee4959759d20e1fe02d22d1 /Makefile
parent23625e2c3ab849d990df286eed8273a885e9600a (diff)
downloadthird_party-func-1a04b752443d805ebe19fa9748becb35c4aeaff8.tar.gz
third_party-func-1a04b752443d805ebe19fa9748becb35c4aeaff8.tar.xz
third_party-func-1a04b752443d805ebe19fa9748becb35c4aeaff8.zip
add clean_hard, clean_harder that removes the site-packages/func tree entirely,
and removes /etc/pki/func, /var/lib/func, and /etc/func add corresponing install_hard, install_harder add "recombuild" target that does a install_harder, and restarts the services
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6c3a013..bcb54e2 100755
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,14 @@ clean:
-rm -rf rpm-build/
-rm -rf docs/*.gz
+clean_hard:
+ -rm -rf $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/func
+
+clean_harder:
+ -rm -rf /etc/pki/func
+ -rm -rf /etc/func
+ -rm -rf /var/lib/func
+
manpage:
pod2man --center="funcd" --release="" ./docs/funcd.pod | gzip -c > ./docs/funcd.1.gz
pod2man --center="func" --release="" ./docs/func.pod | gzip -c > ./docs/func.1.gz
@@ -29,12 +37,20 @@ bumprelease:
setversion:
-echo "$(VERSION) $(RELEASE)" > version
-build:
+build: clean
python setup.py build -f
install: build manpage
python setup.py install -f
+install_hard: clean_hard install
+
+install_harder: clean_harder install
+
+recombuild: install_harder
+ -/etc/init.d/certmaster restart
+ -/etc/init.d/funcd restart
+
sdist: messages
python setup.py sdist