summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/user/subdir.am14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/user/subdir.am b/doc/user/subdir.am
index 53d36052ac..08b5dc954c 100644
--- a/doc/user/subdir.am
+++ b/doc/user/subdir.am
@@ -100,12 +100,18 @@ uninstall-html:
.PHONY: install-data-local uninstall-local
if DOC
DOC_INFO=info
-install-data-local: install-info
-uninstall-local: uninstall-info
+TARGET_INSTALL_INFO=install-info
+TARGET_UNINSTALL_INFO=uninstall-info
endif
if DOC_HTML
DOC_HTML=html
-install-data-local: install-html
-uninstall-local: uninstall-html
+TARGET_INSTALL_HTML=install-html
+TARGET_UNINSTALL_HTML=uninstall-html
endif
+
+# leave the comments in, this was causing weird reordering issues in automake
+install-data-local: $(TARGET_INSTALL_INFO) $(TARGET_INSTALL_HTML)
+#
+uninstall-local: $(TARGET_UNINSTALL_INFO) $(TARGET_UNINSTALL_HTML)
+#
doc: $(DOC_INFO) $(DOC_HTML)