Makefile: Don't create random directories in the working tree.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 9 Jun 2024 12:56:28 +0000 (13:56 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 10 Jun 2024 02:25:49 +0000 (03:25 +0100)
Most noticeably `man'.  I don't know what the old runes were trying to
do, but they don't seem to do anything useful.

Makefile

index ec9db52..68f8bb5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -628,7 +628,7 @@ $(foreach a,$(ALL_ARCHS),\
 $(foreach a,$(ALL_ARCHS),\
   $(foreach d,$(LOCAL_ARCH_LINKS),$(LOCAL)/$a/$d)): \
                $$(if $$(call symlink-ok-p,$$@,$$($$(notdir $$@)_LINKDEST)),,_force)
-       $(V_AT)mkdir -p $(notdir $@)
+       $(V_AT)mkdir -p $(dir $@)
        $(call v_tag,SYMLINK)ln -sf $($(notdir $@)_LINKDEST) $@
 $(foreach a,$(ALL_ARCHS),\
   $(foreach d,$(LOCAL_COMMON_DIRS),$(LOCAL)/$a/$d)): \