aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-05 21:54:40 +0100
committereldritch horrors <pennae@lix.systems>2024-03-05 23:01:05 +0100
commite8f1acfb188e53e7e62b79d0e6beab0605640d7f (patch)
tree257f6e3ec7113c97eb17ff2e0fffb97daaa7fa4e /Makefile
parent13d2f962575e16215844a187399ff62ca876a1fb (diff)
Merge pull request #5145 from fedepell/local_doc_build_5140
Docs build: depend on locally built nix executable and not installed one (cherry picked from commit ca72e3e7e8f69526f028475a7a9b40812da1acdd) === includes changes from (because not doing so removes manpages): Merge pull request #9976 from alois31/restore-manual-pages Restore manual pages (cherry picked from commit d3c1997127e0fc08576e842b2bfe046d8a28d2f4) Change-Id: I685ff16163ac552a1754570c03c992c63a461d50
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b343bec0f..1d3d9df5d 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,7 @@ makefiles = \
misc/zsh/local.mk \
misc/systemd/local.mk \
misc/launchd/local.mk \
- misc/upstart/local.mk \
- doc/manual/local.mk \
- doc/internal-api/local.mk
+ misc/upstart/local.mk
endif
ifeq ($(ENABLE_BUILD)_$(ENABLE_TESTS), yes_yes)
@@ -49,6 +47,16 @@ makefiles += \
mk/disable-tests.mk
endif
+# Some makefiles require access to built programs and must be included late.
+makefiles-late =
+
+ifeq ($(ENABLE_BUILD), yes)
+makefiles-late += doc/manual/local.mk
+makefiles-late += doc/internal-api/local.mk
+endif
+
+# Miscellaneous global Flags
+
OPTIMIZE = 1
ifeq ($(OPTIMIZE), 1)