aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-01 12:29:59 -0400
committerMike Frysinger <vapier@gentoo.org>2009-04-05 03:54:02 -0400
commitc2611dc8a80561a5c8af94291f661eb116f23c48 (patch)
treebfb743ea89839869baa804fde126716c3f26c107 /libsandbox
parentlibsandbox: fix slightly broken logic with ptrace() return (diff)
downloadsandbox-c2611dc8a80561a5c8af94291f661eb116f23c48.tar.gz
sandbox-c2611dc8a80561a5c8af94291f661eb116f23c48.tar.bz2
sandbox-c2611dc8a80561a5c8af94291f661eb116f23c48.zip
use newer automake features
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox')
-rw-r--r--libsandbox/Makefile.am17
1 files changed, 10 insertions, 7 deletions
diff --git a/libsandbox/Makefile.am b/libsandbox/Makefile.am
index 01b9144..36393f0 100644
--- a/libsandbox/Makefile.am
+++ b/libsandbox/Makefile.am
@@ -52,15 +52,19 @@ GEN_HEADER_SCRIPT = $(SCRIPT_DIR)/gen_symbol_header.awk
GEN_TRACE_SCRIPT = $(SCRIPT_DIR)/gen_trace_header.awk
SB_AWK = LC_ALL=C $(AWK) -v SYMBOLS_LIST="$(SYMBOLS_LIST)" -f
+SB_V = $(SB_V_$(V))
+SB_V_ = @echo " GEN" $@;
+SB_V_0 = $(SB_V_)
+
libsandbox.map: $(SYMBOLS_FILE) $(GEN_VERSION_MAP_SCRIPT)
- $(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_VERSION_MAP_SCRIPT) > $@
+ $(SB_V)$(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_VERSION_MAP_SCRIPT) > $@
symbols.h: $(SYMBOLS_FILE) $(SYMBOLS_WRAPPERS) $(GEN_HEADER_SCRIPT)
- $(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_HEADER_SCRIPT) > $@
+ $(SB_V)$(READELF) -s $(LIBC_PATH) | $(SB_AWK) $(GEN_HEADER_SCRIPT) > $@
SB_NR_FILE = $(srcdir)/sb_nr.h.in
sb_nr.h: symbols.h $(SB_NR_FILE)
- $(EGREP) -h '^\#define SB_' $^ > $@
+ $(SB_V)$(EGREP) -h '^\#define SB_' $^ > $@
TRACE_MAKE_HEADER = \
$(SB_AWK) $(GEN_TRACE_SCRIPT) -v MODE=gen | \
@@ -68,16 +72,15 @@ TRACE_MAKE_HEADER = \
$(SB_AWK) $(GEN_TRACE_SCRIPT) -v syscall_prefix=$$t > $$header
trace_syscalls.h: $(GEN_TRACE_SCRIPT)
if SB_SCHIZO
- for pers in $(SB_SCHIZO_SETTINGS) ; do \
+ $(SB_V)for pers in $(SB_SCHIZO_SETTINGS) ; do \
t=_$${pers%:*}; \
f=$${pers#*:}; \
header=trace_syscalls$${t}.h; \
$(TRACE_MAKE_HEADER) || exit $$?; \
done
- touch $@
+ @touch $@
else
- t= f= header=$@; \
- $(TRACE_MAKE_HEADER)
+ $(SB_V)t= f= header=$@; $(TRACE_MAKE_HEADER)
endif
EXTRA_DIST = $(SYMBOLS_FILE) $(SYMBOLS_WRAPPERS) $(SB_NR_FILE) $(TRACE_FILES)