about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-03-24 16:06:59 -0400
committerJohn Ericson <git@JohnEricson.me>2019-03-24 22:11:09 -0400
commit3b27113a7c361cffebcf111b05f45e1b553cabbf (patch)
treee921b36fcc8acc41610d38d451f0f62e3f081907 /doc
parentcf7f234ff54f0e41343d77652de0210cc9e362f9 (diff)
manual: Make sure building doesn't need recursive nix
$(shell ...) looks a little sketch like it will be run no matter what.
And there are problems building the manual on darwin so hopefully this
fixes them.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/Makefile b/doc/Makefile
index cd6d7eb8d1c85..5badfe4138d43 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -78,15 +78,14 @@ manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml function
 	nix-instantiate --eval \
 		-E '(import ../lib).version' > .version
 
-function_locations := $(shell nix-build --no-out-link ./lib-function-locations.nix)
-
 functions/library/locations.xml:
-	ln -s $(function_locations) ./functions/library/locations.xml
+	nix-build ./lib-function-locations.nix \
+		--out-link $@
 
-functions/library/generated:
+functions/library/generated: functions/library/locations.xml
 	nix-build ./lib-function-docs.nix \
-		--arg locationsXml $(function_locations)\
-		--out-link ./functions/library/generated
+		--arg locationsXml $< \
+		--out-link $@
 
 %.section.xml: %.section.md
 	pandoc $^ -w docbook+smart \