From 9b66bdd02b4ca18f9b48b8903599bbdef4dd599a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 11 Jan 2015 10:46:51 -0800 Subject: 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. --- Makefile.nmake | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Makefile.nmake') 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>/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 -- cgit v1.2.3