X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=Makefile;h=b9c667f68592e969dfe81fb6137a598f1f0666fe;hb=e376407224f0f8900b6c90f0f25d71a156dfac93;hp=089a7e7946fc49d68a55e8b6b69e562ff57f7faa;hpb=af564700c95b53f3c2c6f111c1a8b5fd32575728;p=postfix-logwatch.git diff --git a/Makefile b/Makefile index 089a7e7..b9c667f 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,7 @@ src = $(program) \ $(program).conf \ $(program).conf-topn \ $(program).1 \ - $(program).1.html \ - Changes Bugs Makefile README LICENSE + Changes Bugs README LICENSE prefix_logwatch = /etc/logwatch prefix_standalone = /usr/local @@ -19,8 +18,6 @@ scriptdir_standalone = $(prefix_standalone)/bin confdir_standalone = $(prefix_standalone)/etc mandir_standalone = $(prefix_standalone)/man/man1 -toolsdir = ../tools - INSTALL = /usr/bin/install -c install: @@ -54,16 +51,12 @@ uninstall-all: uninstall-logwatch uninstall-standalone PKGDIR = /tmp/$(program)-package -release: program htmlpage +.PHONY: release +release: vers=`egrep 'Version[ ]*=' $(program) | sed "s/.*'\(.*\)';/\1/"` ; \ echo Preparing version $$vers; \ rel=$(program)-$$vers ; \ - tar -czvf $${rel}.tgz --group=0 --owner=0 --mode=644 --transform=s",^,$${rel}/," $(src) ; \ - md5sum $${rel}.tgz > $${rel}.tgz.md5 ; \ - chmod 644 $${rel}.tgz $${rel}.tgz.md5 - -program: - $(toolsdir)/build_from_modules $(program) >| $(program); + tar -cJf $${rel}.tar.xz --transform=s",^,$${rel}/," $(src); -htmlpage: - groff -m mandoc -T ascii $(program).1 | $(toolsdir)/man2html -t 'Man page: $(program)(1)' >| $(program).1.html; +$(program).1.html: + groff -m mandoc -T ascii $(program).1 | man2html -t 'Man page: $(program)(1)' >| $@;