Use $(AM_V_GEN) for custom rules
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 16 Aug 2009 21:02:58 +0000 (14:02 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 16 Aug 2009 21:02:58 +0000 (14:02 -0700)
plugins/Makefile.am
src/Makefile.am

index 4cb8c93..d9e5f97 100644 (file)
@@ -221,14 +221,16 @@ EXTRA_DIST = polkit.policy
 MAINTAINERCLEANFILES = Makefile.in
 
 builtin.h:
-       echo "" > $@
-       list='$(builtin_modules)'; for i in $$list; \
+       @echo "" > $@
+       $(AM_V_GEN)list='$(builtin_modules)'; for i in $$list; \
          do echo "extern struct connman_plugin_desc __connman_builtin_$$i;" >> $@; done
-       echo "" >> $@
-       echo "static struct connman_plugin_desc *__connman_builtin[] = {" >> $@
-       list='$(builtin_modules)'; for i in $$list; \
+       @echo "" >> $@
+       @echo "static struct connman_plugin_desc *__connman_builtin[] = {" >> $@
+       @list='$(builtin_modules)'; for i in $$list; \
          do echo "&__connman_builtin_$$i," >> $@; done
-       echo "NULL };" >> $@
+       @echo "NULL };" >> $@
 
 connman.policy: polkit.policy
-       cp $< $@
+if POLKIT
+       $(AM_V_GEN)cp $< $@
+endif
index f8e80f2..7df6478 100644 (file)
@@ -50,16 +50,16 @@ EXTRA_DIST = connman-dbus.conf connman-polkit.conf
 MAINTAINERCLEANFILES = Makefile.in
 
 connman.exp: $(connmand_OBJECTS)
-       nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
+       $(AM_V_GEN)nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
 
 connman.ver: connman.exp
-       echo "{ global:" > $@
-       cat $< | sed -e "s/\(.*\)/\1;/" >> $@
-       echo "local: *; };" >> $@
+       @echo "{ global:" > $@
+       $(AM_V_GEN)cat $< | sed -e "s/\(.*\)/\1;/" >> $@
+       @echo "local: *; };" >> $@
 
 connman.conf: connman-dbus.conf connman-polkit.conf
 if POLKIT
-       cp $(top_srcdir)/src/connman-polkit.conf $@
+       $(AM_V_GEN)cp $(top_srcdir)/src/connman-polkit.conf $@
 else
-       cp $(top_srcdir)/src/connman-dbus.conf $@
+       $(AM_V_GEN)cp $(top_srcdir)/src/connman-dbus.conf $@
 endif