nop hack required for PREPARE_DIR (PREPARE_MAN for safety)

Fixes #26274
This commit is contained in:
Aidan Hobson Sayers 2015-06-13 16:49:25 +01:00
parent 065c9ab59b
commit b1e9ed3c19

View File

@ -29,7 +29,10 @@ DEFAULT_PREPARE_MAN_CMD = install -m644
# Create a directory
# $(1) is the directory
#
# Gee, what's up with that $(nop)? See comment below.
define PREPARE_DIR
$(nop)
@$(call E, prepare: $(1))
$(Q)$(PREPARE_DIR_CMD) $(1)
endef
@ -68,7 +71,10 @@ endef
# Copy a man page
# $(1) - source dir
#
# Gee, what's up with that $(nop)? See comment above.
define PREPARE_MAN
$(nop)
@$(call E, prepare: $(PREPARE_DEST_MAN_DIR)/$(1))
$(Q)$(PREPARE_MAN_CMD) $(PREPARE_SOURCE_MAN_DIR)/$(1) $(PREPARE_DEST_MAN_DIR)/$(1)
endef