From a6a7950d8060d6bac5ff7bfacb8a75b83720f66c Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 14 Apr 2010 11:21:12 +0100 Subject: Improve gzip make rule --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f284d8c..cd68a93 100644 --- a/Makefile +++ b/Makefile @@ -30,10 +30,10 @@ index.xml: index.txt includes/header-index.xml includes/footer.xml @$(MARKDOWN) $< >> $@ @sed "s/MODDATE/`ls -lc $<|awk '{print $$6}'`/" < includes/footer.xml >> $@ -# bug: if any target changes, all are recompressed -$(GZIP): $(TARGETS) $(EXTRAS) - @echo compressing $* - @gzip < $* >> $@ +# not POSIX compatible +%.gz: % + @echo compressing $< + @gzip < $< > $@ clean: rm -f -- $(TARGETS) $(GZIP) -- cgit v1.2.3