From d40907355185d54286284ec92eef608ea4830a20 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sun, 17 Oct 2010 20:35:10 -0400 Subject: [PATCH] generalize/shorten Makefile --- Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index ae753ce..788957e 100755 --- a/Makefile +++ b/Makefile @@ -8,19 +8,15 @@ VERSION=`dpkg-parsechangelog -lChangelog | grep ^Version: | cut -f2 -d\ ` DEBIAN_VERSION=`dpkg-parsechangelog | grep ^Version: | cut -f2 -d\ ` -all: msva-perl.1 msva-query-agent.1 msva-review-cert.1 +MANPAGES=msva-perl.1 msva-query-agent.1 msva-review-cert.1 -msva-perl.1: msva-perl - pod2man msva-perl msva-perl.1 +all: $(MANPAGES) -msva-query-agent.1: msva-query-agent - pod2man msva-query-agent msva-query-agent.1 - -msva-review-cert.1: msva-review-cert - pod2man msva-review-cert msva-review-cert.1 +%.1: % + pod2man $< $@ clean: - rm -f msva-perl.1 msva-query-agent.1 msva-review-cert.1 + rm -f $(MANPAGES) debian-package: git buildpackage -uc -us -- 2.26.2