epub: $(SOURCE).epub
for LANG in $(LANGS); do \
$(MAKE) $(SOURCE).$$LANG.epub ; \
+ flightcrew-cli $(SOURCE).$$LANG.epub || exit 1 ; \
done
%.epub: %.xml
dbtoepub $^
+# Useful for spell checking the text
+%.txt: %.xml
+ xmlto txt $<
+
XMLLINTOPTS = --nonet --noout --xinclude --postvalid
lint: $(SOURCE).xml
xmllint $(XMLLINTOPTS) $^