From: Mark Wooding Date: Thu, 19 Sep 2019 01:47:26 +0000 (+0100) Subject: Makefile: Create `$(LOCAL)/share/man/'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-chroot/commitdiff_plain/27922408e861f9d0939afa1f408636302f8d943a Makefile: Create `$(LOCAL)/share/man/'. So the symlinks in `$(LOCAL)/$a/man' aren't remade every time. --- diff --git a/Makefile b/Makefile index a6c2179..dbd1714 100644 --- a/Makefile +++ b/Makefile @@ -519,8 +519,9 @@ $(CHECK_SCHROOT_SCRIPTS): check-script/%: ### `/usr/local/' structure. LOCAL_COMMON_DIRS = share/ src/ -all:: $(foreach d,$(LOCAL_COMMON_DIRS),$(LOCAL)/$d) -$(foreach d,$(LOCAL_COMMON_DIRS),$(LOCAL)/$d): +LOCAL_EXTRA_DIRS = share/man/ +all:: $(foreach d,$(LOCAL_COMMON_DIRS) $(LOCAL_EXTRA_DIRS),$(LOCAL)/$d) +$(foreach d,$(LOCAL_COMMON_DIRS) $(LOCAL_EXTRA_DIRS),$(LOCAL)/$d): $(V_AT)mkdir -p $(dir $(patsubst %/,%,$@)) $(call v_tag,MKDIR)mkdir $@