diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -17,7 +17,7 @@ markdown_includes = copyright.md colophon.md includes += $(markdown_includes:.md=.tex) -localfilters = $(filter ./%,$(filters)) +localperlfilters = $(filter ./%,$(filters)) title = Ensuring utmost transparency subtitle = Free Software and Open Standards under the Rules of Procedure of the European Parliament @@ -85,8 +85,12 @@ $(stem).mw: $(stem).raw ./mediawiki-uri-escape $@ ./mediawiki-matter $@ -$(stem).native: $(stem).mw $(localfilters) +$(stem).native: $(stem).mw $(localperlfilters) + # validate syntax and dependencies of local Perl filters + set -e; $(foreach filter,$(localperlfilters),perl -c $(filter);) + # convert content from mediawiki to pandoc-native $(env_filter) pandoc -f mediawiki --smart $(args_meta) $(args_filter) -o $@ $< + # tweak pandoc-native data ./native-hacks $@ $(markdown_includes:.md=.tex): %.tex: %.md |