X-Git-Url: https://pwan.org/git/?a=blobdiff_plain;f=Makefile;h=2f83003d6e5ff25e359cfb90bde4a79ed925f629;hb=9297dabe6c1511bb36a669b505f5586e420b608f;hp=9cbfc49e6a7539558c491ed63d34068055947ac1;hpb=3f460ad56ec4b219cc36287c393c28475faa15c1;p=certmaster.git diff --git a/Makefile b/Makefile old mode 100755 new mode 100644 index 9cbfc49..2f83003 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ VERSION = $(shell echo `awk '{ print $$1 }' version`) RELEASE = $(shell echo `awk '{ print $$2 }' version`) NEWRELEASE = $(shell echo $$(($(RELEASE) + 1))) +PYTHON = /usr/bin/python MESSAGESPOT=po/messages.pot @@ -14,12 +15,13 @@ all: rpms manpage: - pod2man --center="certmaster-request" --release="" ./docs/certmaster-inventory.pod | gzip -c > ./docs/certmaster-request.1.gz + pod2man --center="certmaster-request" --release="" ./docs/certmaster-request.pod | gzip -c > ./docs/certmaster-request.1.gz pod2man --center="certmaster" --release="" ./docs/certmaster.pod | gzip -c > ./docs/certmaster.1.gz pod2man --center="certmaster-ca" --release="" ./docs/certmaster-ca.pod | gzip -c > ./docs/certmaster-ca.1.gz -messages: certmaster/minion/*.py - xgettext -k_ -kN_ -o $(MESSAGESPOT) certmaster/minion/*.py +messages: certmaster/*.py + touch $(MESSAGESPOT) + xgettext -k_ -kN_ -o $(MESSAGESPOT) certmaster/*.py sed -i'~' -e 's/SOME DESCRIPTIVE TITLE/certmaster/g' -e 's/YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/2007 Red Hat, inc. /g' -e 's/FIRST AUTHOR , YEAR/Adrian Likins , 2007/g' -e 's/PACKAGE VERSION/certmaster $(VERSION)-$(RELEASE)/g' -e 's/PACKAGE/certmaster/g' $(MESSAGESPOT) @@ -30,7 +32,7 @@ setversion: -echo "$(VERSION) $(RELEASE)" > version build: clean - python setup.py build -f + $(PYTHON) setup.py build -f clean: -rm -f MANIFEST @@ -41,7 +43,7 @@ clean: -for d in $(DIRS); do ($(MAKE) -C $$d clean ); done clean_hard: - -rm -rf $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/certmaster + -rm -rf $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")/certmaster clean_harder: -rm -rf /etc/pki/certmaster @@ -52,7 +54,7 @@ clean_hardest: clean_rpms install: build manpage - python setup.py install -f + $(PYTHON) setup.py install -f install_hard: clean_hard install @@ -72,7 +74,7 @@ clean_rpms: -rpm -e certmaster sdist: messages - python setup.py sdist + $(PYTHON) setup.py sdist new-rpms: bumprelease rpms