summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2019-02-10 15:21:08 -0500
committerGitHub <noreply@github.com>2019-02-10 15:21:08 -0500
commit3172cc61f2a95c278f470d2ba95131da806505fb (patch)
tree1433420fde58835d34204fedb6cb5fa410e66d0b /doc
parentd9b14864a54ebdb4d36961226bd5260996ada2eb (diff)
parent29c320f9a6ab919b5d7bccea8e68c0f1ca74ad0d (diff)
downloadnixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.tar
nixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.tar.gz
nixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.tar.bz2
nixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.tar.lz
nixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.tar.xz
nixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.tar.zst
nixpkgs-3172cc61f2a95c278f470d2ba95131da806505fb.zip
Merge pull request #55040 from tazjin/docs/fix-manual-makefile
Fix manual Makefile by including function doc generation
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 91b62fe138b..cd6d7eb8d1c 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -21,7 +21,7 @@ fix-misc-xml:
 
 .PHONY: clean
 clean:
-	rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml
+	rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml functions/library/generated
 	rm -rf ./out/ ./highlightjs
 
 .PHONY: validate
@@ -71,16 +71,22 @@ highlightjs:
 	cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
 
 
-manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml *.xml **/*.xml **/**/*.xml
+manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
 	xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
 
 .version:
 	nix-instantiate --eval \
 		-E '(import ../lib).version' > .version
 
+function_locations := $(shell nix-build --no-out-link ./lib-function-locations.nix)
+
 functions/library/locations.xml:
-	nix-build ./lib-function-locations.nix \
-		--out-link ./functions/library/locations.xml
+	ln -s $(function_locations) ./functions/library/locations.xml
+
+functions/library/generated:
+	nix-build ./lib-function-docs.nix \
+		--arg locationsXml $(function_locations)\
+		--out-link ./functions/library/generated
 
 %.section.xml: %.section.md
 	pandoc $^ -w docbook+smart \