$(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
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
+ tar -cJf $${rel}.tar.xz --transform=s",^,$${rel}/," $(src);
-htmlpage:
- groff -m mandoc -T ascii $(program).1 | 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)' >| $@;