https://gist.github.com/johnd0e/7d00f4d ... e-makefile
Makefile for documents converting using pandoc.
Source: *.text (extension defined by SOURCE_EXT).
Target(s): enumerated in commandline (otherwise can be set in .DEFAULT_GOAL)
Usage:
make some_doc.html
Convert some_doc.text to some_doc.html.
Instead of ".html" any other pandoc-supported file type can be used.
make some_doc.hlf
Convert some_doc.text to some_doc.hlf using pandoc and HtmlToFarHelp.
make html
Convert *.text to *.html.
Instead of ".html" any other supported extension can be used, incl. hlf (must be enumerated in TARGET_EXT).
make clean
Clean current directory from all files with extensins specified in TARGET_EXT.
make help
This help
Notes:
1. pandoc.exe and HtmlToFarHelp.exe must be available.
It is also possible to define full paths in env variables PANDOC/HTMLTOFARHELP.
2. Some conversions may require additional lua filters, which must be present in current directory.
Alternatively they can reside in $(APPDATA)\pandoc\filters
3. Some conversions may require lua writers, which must be present in current directory.
Alternatively they can reside in $(APPDATA)\pandoc\custom