diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-10-23 14:14:50 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-10-23 14:14:50 +0200 |
commit | f6b6b7cfbde7920021dff06dea1ded31e00da54b (patch) | |
tree | bbc0c6ca1f006c9320165b1ab11491180a089d1e /Makefile | |
parent | e5740fd99abac0eb4547aa86398a8205ede34b8b (diff) |
Have all targets depend on Makefile (to regenerate if rules change.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 \ |