Skip to contentSkip to conversation

Fix: examples silent rules on Solaris

PATCH Mathieu Desnoyers 1 participant 1 message Dec 13, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw

Merged, thanks!

Mathieu

Quoted 65 lines · ----- On Dec 12, 2018, at 3:30 PM, Michael Jeanson [email protected] wrote:

---

doc/examples/Makefile.examples.template | 6 ++++--
doc/examples/dist-files/Makefile        | 2 +-
doc/examples/hlist/Makefile             | 2 +-
doc/examples/wfcqueue/Makefile          | 2 +-
4 files changed, 7 insertions(+), 5 deletions(-)
doc/examples/Makefile.examples.template +4 -2
index 238a5cc..e6196f5 100644
@@ -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)
 
doc/examples/dist-files/Makefile +0 -1
index 08b7dcb..08f3728 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2013  Mathieu Desnoyers

<mathieu.desnoyers$(AM_V_at)efficios.com>
+# Copyright (C) 2013 Mathieu Desnoyers <[email protected]> #
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.

doc/examples/hlist/Makefile +0 -1
index 57197a2..4256035 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2013  Mathieu Desnoyers

<mathieu.desnoyers$(AM_V_at)efficios.com>
+# Copyright (C) 2013 Mathieu Desnoyers <[email protected]> #
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.

doc/examples/wfcqueue/Makefile +0 -1
index d1a5a2d..4f0338e 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2013  Mathieu Desnoyers

<mathieu.desnoyers$(AM_V_at)efficios.com>
+# Copyright (C) 2013 Mathieu Desnoyers <[email protected]> #
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
--
2.17.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com