From e376407224f0f8900b6c90f0f25d71a156dfac93 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 1 Aug 2021 09:04:11 -0400 Subject: [PATCH] Makefile: release as tar.xz and don't include HTML docs by default. Since this is mainly a server utility, the HTML page is a bit redundant because we already include the man page from which it is built. Anyone is capable of running man2html to turn a man page into a web page if they so desire. We also change the release tarball to "tar.xz" format with lzma compression, because that's what all the cool kids are doing. --- Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 9b317ac..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 @@ -52,13 +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 + 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)' >| $@; -- 2.43.2