summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-10-23 14:14:50 +0200
committerJonas Smedegaard <dr@jones.dk>2015-10-23 14:14:50 +0200
commitf6b6b7cfbde7920021dff06dea1ded31e00da54b (patch)
treebbc0c6ca1f006c9320165b1ab11491180a089d1e /Makefile
parente5740fd99abac0eb4547aa86398a8205ede34b8b (diff)
Have all targets depend on Makefile (to regenerate if rules change.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7cabf80..036f22e 100644
--- a/Makefile
+++ b/Makefile
@@ -25,17 +25,17 @@ all: $(textfiles) $(rdfxmlfiles) $(htmlfiles)
clean:
rm -rf build
-$(turtlefiles): build/%/index.ttl : data/%.ttl
+$(turtlefiles): build/%/index.ttl : data/%.ttl Makefile
mkdir -p $(dir $@)
cp $< $@
# $(eval base = $(call getbase, $<))
# rapper $(base:%=-I "%") -i turtle -o turtle "$<" > "$@"
# perl -i -pe 's/ {4}/\t/g' "$@"
-$(textfiles): %.txt : %.ttl
+$(textfiles): %.txt : %.ttl Makefile
ln -fs $(notdir $<) $@
-$(rdfxmlfiles): %.rdf : %.ttl
+$(rdfxmlfiles): %.rdf : %.ttl Makefile
$(eval base = $(call getbase, $<))
rapper $(base:%=-I "%") -i turtle -o rdfxml-abbrev "$<" > "$@"
@@ -43,7 +43,7 @@ $(rdfxmlfiles): %.rdf : %.ttl
# * add doctype and title to validate
# * add charset to not rely on server hinting
# * refer to plaintext serialization (not self) of dataset
-$(htmlprogrammefiles): %.html : %.ttl
+$(htmlprogrammefiles): %.html : %.ttl Makefile
$(eval base = $(call getbase, $<))
wget -O"$@" "http://programme.ecs.soton.ac.uk/tool.php?src=$(base)"
perl -pi -0 \