summaryrefslogtreecommitdiff
path: root/Makefile.nmake
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-11 10:46:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-11 10:48:59 -0800
commit9b66bdd02b4ca18f9b48b8903599bbdef4dd599a (patch)
treea1e30614f15898801e98b000b608b94dc1bfe381 /Makefile.nmake
parentd44720f4c775fd3f83adb30741e202f40581f097 (diff)
Added cmark.3 man page to repository and archive.
It simplifies the build if python and the cmark library aren't needed to build the man page. The top level Makefile has a rule to regenerate this when src/cmark.h changes. Updated Makefile.nmake for recent changes. Added case folding data file to archive, since otherwise make fails.
Diffstat (limited to 'Makefile.nmake')
-rw-r--r--Makefile.nmake18
1 files changed, 6 insertions, 12 deletions
diff --git a/Makefile.nmake b/Makefile.nmake
index 54034c4..3f3bbce 100644
--- a/Makefile.nmake
+++ b/Makefile.nmake
@@ -29,9 +29,6 @@ clean:
$(SRCDIR)\case_fold_switch.inc: $(DATADIR)\CaseFolding-3.2.0.txt
perl mkcasefold.pl < $? > $@
-man\man1\cmark.1: man\cmark.1.md
- pandoc $? -o $@ -s -t man
-
test: $(SPEC) all
@pushd $(BUILDDIR) && $(MAKE) /nologo test ARGS="-V" && popd
@@ -41,17 +38,14 @@ distclean: clean
### Spec ###
-spec.md: $(SPEC)
- perl spec2md.pl < $? > $@
+spec.html: spec.txt template.html $(PROG)
+ python3 makespec.py html > $@
-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/\\x{2423}/<span class=\"space\"> <\\/span>/g" \
- > $@
+spec.md: spec.txt
+ python3 makespec.py markdown > $@
spec.pdf: spec.md template.tex specfilter.hs
- pandoc -s $? --template template.tex \
- --filter specfilter.hs -o $@ --latex-engine=xelatex --toc \
+ pandoc -s $< --template template.tex \
+ --filter ./specfilter.hs -o $@ --latex-engine=xelatex --toc \
--number-sections -V documentclass=report -V tocdepth=2 \
-V classoption=twosides