[Nice] [PATCH 2/4] Use only POSIX statements in Makefile.am

Timothy Redaelli timothy at redaelli.eu
Thu Mar 31 06:27:38 PDT 2011


---
 agent/Makefile.am |   10 +++++-----
 nice/Makefile.am  |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/agent/Makefile.am b/agent/Makefile.am
index fa7d67a..2eb88c6 100644
--- a/agent/Makefile.am
+++ b/agent/Makefile.am
@@ -24,12 +24,12 @@ dist_noinst_DATA = agent-signals-marshal.list
 noinst_LTLIBRARIES = libagent.la
 
 agent-signals-marshal.h: agent-signals-marshal.list
-	glib-genmarshal --header --prefix=agent_marshal $< > $@
+	glib-genmarshal --header --prefix=agent_marshal $? > $@
 
-agent-signals-marshal.c: agent-signals-marshal.list Makefile.am
-	glib-genmarshal --body --prefix=agent_marshal $< > $@
-	sed -i "1i#include \"agent-signals-marshal.h\"" $@
-	sed -i -e 's/^}$$/(void)return_value;(void)invocation_hint;}/' $@
+agent-signals-marshal.c: agent-signals-marshal.list
+	echo '#include "agent-signals-marshal.h"' > $@
+	glib-genmarshal --body --prefix=agent_marshal $? | \
+	sed -e 's/^}$$/(void)return_value;(void)invocation_hint;}/' >> $@
 
 BUILT_SOURCES = \
 	agent-signals-marshal.h \
diff --git a/nice/Makefile.am b/nice/Makefile.am
index d016b96..ce7f316 100644
--- a/nice/Makefile.am
+++ b/nice/Makefile.am
@@ -37,9 +37,9 @@ AM_CFLAGS = \
 test-symbols.sh::
 	chmod +x $(srcdir)/$@
 
-libnice.symbols: libnice.sym Makefile
+libnice.symbols: libnice.sym
 	rm -f $@
-	while read s; do echo "T $$s"; done < $< > $@
+	while read s; do echo "T $$s"; done < $? > $@
 
 CLEANFILES += libnice.symbols
 
-- 
1.7.4.2



More information about the Nice mailing list