summary refs log tree commit diff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-03-25 07:37:41 -0400
committerGraham Christensen <graham@grahamc.com>2018-03-25 19:52:08 -0400
commitfce1fb7e7573cacfd3edaa282cb4ebdcb58d6681 (patch)
tree800e01e4889f92424b685f2cb4dd81bf42ba9cc7 /doc/Makefile
parent30dd2d3feb6d872372ee6f9ec86e58c3367589c7 (diff)
downloadnixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.tar
nixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.tar.gz
nixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.tar.bz2
nixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.tar.lz
nixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.tar.xz
nixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.tar.zst
nixlib-fce1fb7e7573cacfd3edaa282cb4ebdcb58d6681.zip
Move validate to top-level so it doesn't rebuild the outputs every time
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 1ef668528add..f3a4d6b5aafd 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -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 \
@@ -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/ \