aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-04 13:07:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-04 13:07:18 -0800
commitd948cb2b921ef0384015bbd432d8b7a7015fee11 (patch)
treef6dfc40e69738eaa2cddbd70e446dac68beceab7 /Makefile
parent22b6d7d5dfa00510dd8df481ef4bed3945cc911c (diff)
spec2md.py -> makespec.py.
Moved HTML generation out of Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0791f1a..fc47464 100644
--- a/Makefile
+++ b/Makefile
@@ -178,7 +178,7 @@ dingus: js/commonmark.js
### Spec ###
spec.md: $(SPEC)
- python3 spec2md.py $< > $@
+ python3 makespec.py $< markdown > $@
spec: spec.html
@anchors=`perl -ne '@matches = / id="([^"]*)"/g; foreach $$match (@matches) { print "$$match\n"; }' $<`; \
@@ -188,11 +188,8 @@ spec: spec.html
echo "Link to missing anchor #$$link"; \
done
-spec.html: spec.md template.html
- pandoc --no-highlight --number-sections --template template.html -s --toc -S $< | \
- perl -pe 's/a href="@([^"]*)"/a id="\1" href="#\1" class="definition"/g' | \
- perl -pe 's/␣/<span class="space"> <\/span>/g' \
- > $@
+spec.html: spec.txt template.html
+ python3 makespec.py $< html > $@
spec.pdf: spec.md template.tex specfilter.hs
pandoc -s $< --template template.tex \