summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-04-14 11:21:12 +0100
committerNick White <git@njw.me.uk>2010-04-14 11:21:12 +0100
commita6a7950d8060d6bac5ff7bfacb8a75b83720f66c (patch)
tree5aa9acc25c574acd5d931e8b2bafbaa19e39a974 /Makefile
parent5d8395cd844d7f18be21e41401732b05969518ca (diff)
downloadnjw-website-a6a7950d8060d6bac5ff7bfacb8a75b83720f66c.tar.bz2
njw-website-a6a7950d8060d6bac5ff7bfacb8a75b83720f66c.zip
Improve gzip make rule
Diffstat (limited to 'Makefile')
-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)