Skip to content

Commit

Permalink
Move validate to top-level so it doesn't rebuild the outputs every time
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Mar 25, 2018
1 parent 30dd2d3 commit fce1fb7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
MD_TARGETS=$(addsuffix .xml, $(basename $(wildcard ./*.md ./**/*.md)))

.PHONY: all
all: out/html/index.html out/epub/manual.epub
all: validate out/html/index.html out/epub/manual.epub

.PHONY: clean
clean:
rm -f ${MD_TARGETS} .version manual-full.xml
rm -rf ./out/

.PHONY: validate
validate: manual-full.xml
jing "$$RNG" manual-full.xml

out/html/index.html: validate manual-full.xml style.css
out/html/index.html: manual-full.xml style.css
mkdir -p out/html
xsltproc $$xsltFlags \
--nonet --xinclude \
Expand All @@ -23,8 +24,9 @@ out/html/index.html: validate manual-full.xml style.css

mkdir -p out/html/images/callouts
cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/
chmod u+w -R out/html/images/

out/epub/manual.epub: validate manual-full.xml
out/epub/manual.epub: manual-full.xml
mkdir -p out/epub/scratch
xsltproc $$xsltFlags --nonet \
--output out/epub/scratch/ \
Expand Down

0 comments on commit fce1fb7

Please sign in to comment.