X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=Makefile;h=8f12319af8feb9d70e4b1f0f9015ebca0999826a;hb=636bc2c515452cce509f679eb3fdc0d6177144bc;hp=f5d7b7806505074feb407dc5fd34ab47d6e67cf2;hpb=bd72fdae36892f8baeee44b4a4679a8a330e5962;p=amavis-logwatch.git diff --git a/Makefile b/Makefile index f5d7b78..8f12319 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ program_logwatch = amavis src = $(program) \ $(program).conf \ $(program).1 \ - $(program).1.html \ Changes Bugs Makefile README LICENSE prefix_logwatch = /etc/logwatch @@ -17,8 +16,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: @@ -50,16 +47,12 @@ uninstall-standalone: uninstall-all: uninstall-logwatch uninstall-standalone -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; + groff -m mandoc -T ascii $(program).1 | man2html -t 'Man page: $(program)(1)' >| $(program).1.html;