summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-04-09 16:27:54 +0100
committerNick White <git@njw.me.uk>2010-04-09 16:27:54 +0100
commita888e49311cb1a14799b9534cc183c5af2d25bc2 (patch)
treedb39f87c074d98bd24be43eb1f3db5433aa57036 /Makefile
parent573cb4fa5b8c1bff7cb379dc7d76982b9333d10c (diff)
downloadnjw-website-a888e49311cb1a14799b9534cc183c5af2d25bc2.tar.bz2
njw-website-a888e49311cb1a14799b9534cc183c5af2d25bc2.zip
Switch to n3 for rss format
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5c45561..bacd289 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
# See COPYING file for copyright, license and warranty details.
-SITENAME=njw.me.uk
+SITENAME=http://njw.me.uk
+FOAF=http://njw.me.uk/foaf\#i
MARKDOWN=smu
-RSS=rss.rdf
+RSS=rss.n3
PAGES=$(shell find . -name '*.txt' ! -name 'robots.txt' ! -name $(RSS))
EXTRAS=$(shell find . -name '*.css') foaf.n3
TARGETS=$(PAGES:.txt=.xml) $(RSS)
@@ -13,9 +14,9 @@ all: $(TARGETS) $(GZIP)
$(TARGETS): includes/header.xml includes/footer.xml
-$(RSS): $(PAGES)
+$(RSS): $(PAGES) makerss.sh
@echo making $@
- @sh makerss.sh $(SITENAME) $* > $@
+ @sh makerss.sh $(SITENAME) $(FOAF) $* > $@
index.xml: index.txt includes/header-index.xml includes/footer.xml
@echo making $@
@@ -30,7 +31,7 @@ index.xml: index.txt includes/header-index.xml includes/footer.xml
@sed "s/MODDATE/`ls -lc $<|awk '{print $$6}'`/" < includes/footer.xml >> $@
# bug: if any target changes, all are recompressed
-$(GZIP): $(TARGETS)
+$(GZIP): $(TARGETS) $(EXTRAS)
@echo compressing $*
@gzip < $* >> $@