]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Validate epub after dbtoepub, not in loop.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 27 Oct 2020 21:26:12 +0000 (22:26 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 27 Oct 2020 21:33:22 +0000 (22:33 +0100)
Makefile

index 3a2492fbeed6a6a4d97549d88872806df4da5a9b..e68e50e87108a19c2b25ca2684ba3430b62b1237 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -167,10 +167,10 @@ DBLATEX_OPTS = -T simple -t pdf -b xetex
 epub: $(SOURCE).epub
        for LANG in $(LANGS); do \
            $(MAKE) $(SOURCE).$$LANG.epub ; \
-           flightcrew-cli $(SOURCE).$$LANG.epub || exit 1 ; \
        done
 %.epub: %.xml
        dbtoepub $^
+       flightcrew-cli $@ || exit 1
 
 html: $(SOURCE).html
        for LANG in $(LANGS); do \