diff --git a/make-includes/build_section_rules.make b/make-includes/build_section_rules.make index 3d4aca2..1b6b8c3 100755 --- a/make-includes/build_section_rules.make +++ b/make-includes/build_section_rules.make @@ -246,12 +246,16 @@ # (assuming that this variable points to a directory on the network) the # appropriate share has been mounted. # -install: +install: $(INSTALL_FILES) @test -d $(HANDBOOK_INSTALL_ROOT) +ifneq ($(strip $(QUESTION_INSTALL_DIRS)),) @announce "Installing questions in $(SECTION)" @$(foreach d,$(QUESTION_INSTALL_DIRS),$(MAKE) -C $d install-questions;) +endif +ifneq ($(strip $(ANSWER_INSTALL_DIRS)),) @announce "Installing answers in $(SECTION)" @$(foreach d,$(ANSWER_INSTALL_DIRS),$(MAKE) -C $d install-answers;) +endif ifneq ($(strip $(INSTALL_FILES)),) @announce "Installing miscellaneous files in $(SECTION)" cp $(INSTALL_FILES) $(INSTALL_DIRECTORY)