diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-21 06:09:04 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-21 06:09:04 -0400 |
commit | ef35a16d1b5dcc1a99d17470799e680879278600 (patch) | |
tree | 571861e06f8dfdf42e552fccff2ffc7b62ba8104 | |
parent | bump to sandbox-2.26 (diff) | |
download | sandbox-ef35a16d1b5dcc1a99d17470799e680879278600.tar.gz sandbox-ef35a16d1b5dcc1a99d17470799e680879278600.tar.bz2 sandbox-ef35a16d1b5dcc1a99d17470799e680879278600.zip |
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@gentoo.org>
-rw-r--r-- | libsandbox/local.mk | 4 |
1 files changed, 4 insertions, 0 deletions
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#*:}; \ |