Skip to content

Commit

Permalink
feat(rules): Add error mechanism for filters expecting undefined edits
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 19, 2023
1 parent ac4f8b4 commit 7334745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/rules.mk
Expand Up @@ -501,6 +501,7 @@ $(SOURCESWITHOUTLINKS): private PANDOCFILTERS += --lua-filter=$(CASILEDIR)/pando

SOURCESWITHEDITS := $(SOURCESWITHVERSES) $(SOURCESWITHOUTFOOTNOTES) $(SOURCESWITHOUTLINKS)
$(SOURCESWITHEDITS): $$(call strip_edits,$$@)
: $(or $(filter %.md,$^),$(error No sources with expected edits defined))
$(PANDOC) \
$(PANDOCARGS) $(PANDOCFILTERS) $(PANDOCFILTERARGS) \
$(filter %.md,$^) -o $@
Expand Down

0 comments on commit 7334745

Please sign in to comment.