git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #55040 from tazjin/docs/fix-manual-makefile

Fix manual Makefile by including function doc generation

commit3172cc61f2a95c278f470d2ba95131da806505fb authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateSun 10 Feb 2019, 15:21 (8 years ago) parentd9b148629c320f
1 file changed+10−4
doc/Makefile+10−4
doc/Makefile+10−4
@@ -21,7 +21,7 @@ fix-misc-xml:
2121
2222.PHONY: clean
2323clean:
24− rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml
24+ rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml functions/library/generated
2525 rm -rf ./out/ ./highlightjs
2626
2727.PHONY: validate
@@ -71,16 +71,22 @@ highlightjs:
7171 cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
7272
7373
74−manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml *.xml **/*.xml **/**/*.xml
74+manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
7575 xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
7676
7777.version:
7878 nix-instantiate --eval \
7979 -E '(import ../lib).version' > .version
8080
81+function_locations := $(shell nix-build --no-out-link ./lib-function-locations.nix)
82+
8183functions/library/locations.xml:
82− nix-build ./lib-function-locations.nix \
83− --out-link ./functions/library/locations.xml
84+ ln -s $(function_locations) ./functions/library/locations.xml
85+
86+functions/library/generated:
87+ nix-build ./lib-function-docs.nix \
88+ --arg locationsXml $(function_locations)\
89+ --out-link ./functions/library/generated
8490
8591%.section.xml: %.section.md
8692 pandoc $^ -w docbook+smart \