diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |