summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-23 22:20:23 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-24 16:25:36 -0500
commitebea41b8d21457d435b8fd6ee6783e3dbf749cba (patch)
treecc019fca2db5a92cd1434d18675647f0fd91f546
parent245d345f7539983c08fd8dbc0c51079422ca096a (diff)
build-sys: add silent rule for m4 processing
Using custom prefixes makes the whole build process a bit more readable.
-rw-r--r--Makefile.am12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index cd4d879ce7..abc3d55438 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -247,6 +247,12 @@ INSTALL_EXEC_HOOKS += \
install-aliases-hook
# ------------------------------------------------------------------------------
+
+AM_V_M4 = $(AM_V_M4_$(V))
+AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
+AM_V_M4_0 = @echo " M4 " $@;
+
+# ------------------------------------------------------------------------------
rootbin_PROGRAMS = \
systemctl \
systemd-notify \
@@ -3863,14 +3869,14 @@ src/%.c: src/%.gperf
src/%: src/%.m4
$(AM_V_at)$(MKDIR_P) $(dir $@)
- $(AM_V_GEN)$(M4) -P $(M4_DEFINES) < $< > $@
+ $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
M4_PROCESS_SYSTEM = \
- $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+ $(AM_V_M4)$(MKDIR_P) $(dir $@) && \
$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
M4_PROCESS_USER = \
- $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+ $(AM_V_M4)$(MKDIR_P) $(dir $@) && \
$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
units/%: units/%.m4 Makefile