commit: ef35a16d1b5dcc1a99d17470799e680879278600
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 21 10:09:04 2021 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Oct 21 10:09:04 2021 +0000
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=ef35a16d
build: create libsandbox dir before writing files
Merging subdir Makefile.am files up meant that creation of those
dirs for outputs is no longer handled immediately by autoconf, so
make sure our custom rules have mkdir calls.
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
libsandbox/local.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libsandbox/local.mk b/libsandbox/local.mk
index 892121a..58e597a 100644
--- a/libsandbox/local.mk
+++ b/libsandbox/local.mk
@@ -57,13 +57,16 @@ GEN_TRACE_SCRIPT = $(SCRIPT_DIR)/gen_trace_header.awk
SB_AWK = LC_ALL=C $(AWK) -v SYMBOLS_LIST="$(SYMBOLS_LIST)" -v
srcdir="$(top_srcdir)/%D%" -f
%D%/libsandbox.map: $(SYMBOLS_FILE) $(GEN_VERSION_MAP_SCRIPT)
+ @$(MKDIR_P) %D%
$(AM_V_GEN)$(READELF) -s $(LIBC_PATH) | $(SB_AWK)
$(GEN_VERSION_MAP_SCRIPT) > $@
%D%/symbols.h: $(SYMBOLS_FILE) $(GEN_HEADER_SCRIPT)
+ @$(MKDIR_P) %D%
$(AM_V_GEN)$(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_HEADER_SCRIPT)
> $@
SB_NR_FILE = %D%/sb_nr.h.in
%D%/sb_nr.h: %D%/symbols.h $(SB_NR_FILE)
+ @$(MKDIR_P) %D%
$(AM_V_GEN)$(EGREP) -h '^\#define SB_' $^ > $@
TRACE_MAKE_HEADER = \
@@ -78,6 +81,7 @@ else
endif
$(SB_SCHIZO_HEADERS): $(GEN_TRACE_SCRIPT)
+ @$(MKDIR_P) %D%
$(AM_V_GEN)for pers in $(SB_SCHIZO_SETTINGS) ; do \
t=_$${pers%:*}; \
f=$${pers#*:}; \