diff options
author | Nick White <git@njw.me.uk> | 2010-04-14 11:21:12 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-04-14 11:21:12 +0100 |
commit | a6a7950d8060d6bac5ff7bfacb8a75b83720f66c (patch) | |
tree | 5aa9acc25c574acd5d931e8b2bafbaa19e39a974 /Makefile | |
parent | 5d8395cd844d7f18be21e41401732b05969518ca (diff) | |
download | njw-website-a6a7950d8060d6bac5ff7bfacb8a75b83720f66c.tar.bz2 njw-website-a6a7950d8060d6bac5ff7bfacb8a75b83720f66c.zip |
Improve gzip make rule
Diffstat (limited to 'Makefile')
-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) |