summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-04-29 09:42:34 +0100
committerNick White <git@njw.me.uk>2010-04-29 09:42:34 +0100
commitde5a6d39938d70b07ee7380839b1116dcf26b518 (patch)
treef40153ecde54ff2327cfff6b98e7c361c593c46f /Makefile
parent07b8dc7830fb845c3bd29d76a0c2bca8eff939b6 (diff)
downloadnjw-website-de5a6d39938d70b07ee7380839b1116dcf26b518.tar.bz2
njw-website-de5a6d39938d70b07ee7380839b1116dcf26b518.zip
A hundred tiny improvements
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 14732a2..7779d64 100644
--- a/Makefile
+++ b/Makefile
@@ -15,27 +15,22 @@ all: $(TARGETS) $(GZIP)
$(TARGETS): includes/header.xml includes/footer.xml
$(RSS): $(PAGES) makerss.sh
- @echo making $@
- @sh makerss.sh $(SITENAME) $(FOAF) $* > $@
-
-index.xml: index.txt includes/header-index.xml includes/footer.xml
- @echo making $@
- @sed "s/TITLE/`head -n 1 < $<`/" < includes/header-index.xml > $@
- @$(MARKDOWN) $< >> $@
- @sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
+ echo making $@
+ sh makerss.sh $(SITENAME) $(FOAF) $* > $@
.txt.xml:
- @echo making $@
- @sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@
- @$(MARKDOWN) $< >> $@
- @sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
+ echo making $@
+ sed "s/TITLE/`head -n 1 < $<`/" < includes/header.xml > $@
+ $(MARKDOWN) $< >> $@
+ sed "s/MODDATE/`ls -lc --time-style=+%Y-%m-%d $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
# not POSIX compatible
%.gz: %
- @echo compressing $<
- @gzip < $< > $@
+ echo compressing $<
+ gzip < $< > $@
clean:
rm -f -- $(TARGETS) $(GZIP)
.SUFFIXES: .txt .xml .rdf .gz
+.SILENT: