Fix: examples silent rules on Solaris
[urcu.git] / doc / examples / Makefile.examples.template
index 238a5cc8d45ec85c8512532a8b596b3fb81a5a99..e6196f53104f37796a03fd83320541a436710b32 100644 (file)
@@ -17,12 +17,14 @@ AM_V_P := :
 all: $(BINARY)
 
 $(BINARY): $(OBJECTS)
-       @if $(AM_V_P); then set -x; else echo "  CCLD     $@"; fi; \
+       @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
+               if $$verbose; then set -x; else echo "  CCLD     $@"; fi; \
                $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
                -o $@ $(OBJECTS) $(LIBS)
 
 $(OBJECTS): $(SOURCES) $(DEPS)
-       @if $(AM_V_P); then set -x; else echo "  CC       $@"; fi; \
+       @verbose="$(AM_V_P)"; if [ "x$$verbose" = "x" ]; then verbose=":"; fi; \
+               if $$verbose; then set -x; else echo "  CC       $@"; fi; \
                $(CC) $(LOCAL_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) \
                -c -o $@ $(SOURCES)
 
This page took 0.031234 seconds and 4 git commands to generate.