]> gitweb.michael.orlitzky.com - amavis-logwatch.git/blobdiff - Makefile
Changes: start the changelog entry for 1.51.04.
[amavis-logwatch.git] / Makefile
index f5d7b7806505074feb407dc5fd34ab47d6e67cf2..2e09bf6f962d77459bb4a412dbc10298f06aeed1 100644 (file)
--- 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;
+$(program).1.html: $(program).1
+       man2html $< > $@