Makefile: fix build/inbox creation

This commit is contained in:
Jonas Wielicki 2017-08-23 16:56:01 +02:00
parent cdc3c09624
commit 340ab90216
1 changed files with 3 additions and 4 deletions

View File

@ -49,10 +49,6 @@ help:
.PHONY: all
all: html
$(OUTDIR)/inbox/%: build/inbox
build/inbox:
mkdir -p build/inbox
.PHONY: xeplist
xeplist: $(OUTDIR)/xeplist.xml
@ -99,7 +95,10 @@ $(REFSDIR)/reference.XSF.XEP-%.xml: xep-%.xml $(XMLDEPS) ref.xsl $(REFSDIR)
xsltproc --path $(CURDIR) ref.xsl "$<" > "$@" && echo "Finished building $@"
$(all_xep_htmls): $(OUTDIR)/%.html: %.xml $(XMLDEPS) $(HTMLDEPS)
# we dont put it as a dependency to avoid a rebuild due to a timestamp
# change on the directory
mkdir -p $(OUTDIR)/inbox
xmllint --nonet --noout --noent --loaddtd --valid "$<"
# Check for non-data URIs
! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true