summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
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)