From: Alan T. DeKok Date: Tue, 18 Jun 2019 14:22:23 +0000 (-0400) Subject: notes on ADD_INSTALL_RULE.dir X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ad1579896994bfbbd12598a360cea090d7b9a7;p=thirdparty%2Ffreeradius-server.git notes on ADD_INSTALL_RULE.dir --- diff --git a/scripts/install.mk b/scripts/install.mk index 5b133b6c7f7..16107c3f840 100644 --- a/scripts/install.mk +++ b/scripts/install.mk @@ -171,12 +171,24 @@ endef # ADD_INSTALL_RULE.dir - Parameterized "function" that adds a new rule # and phony target for installing a directory # +# We would like to have this directory have an order dependency on it's parent: +# +# | $(dir $(patsubst %/,%,$(dir ${1}))) +# +# but ONLY to the root of the directory we're installing. There's no simple way +# to get at that information right now, so we'll ignore it. Until that's fixed, +# doing "make -j 14 install.doc" will get a series of complaints about +# +# "mkdir: foo: File exists" +# +# but ONLY once for each directory. +# # USE WITH EVAL # define ADD_INSTALL_RULE.dir # Install directory .PHONY: ${1} - ${1}: ${JLIBTOOL} + ${1}: @$(ECHO) INSTALL -d -m 755 ${1} $(Q)$${PROGRAM_INSTALL} -d -m 755 ${1} endef