summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-07-11 15:02:07 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-07-11 15:02:07 +0200
commitfd4446c3a6a1c7baf05839cb9cfe9d6349a14a08 (patch)
treedae33072f872bbfd5d759c7ca7ad5b6e381861fd /src
parent91f4db531f8eb2f9b7321c3b855cbbf230bdce3d (diff)
downloadcmumble-fd4446c3a6a1c7baf05839cb9cfe9d6349a14a08.tar.gz
cmumble-fd4446c3a6a1c7baf05839cb9cfe9d6349a14a08.tar.bz2
cmumble-fd4446c3a6a1c7baf05839cb9cfe9d6349a14a08.zip
Make use of BUILT_SOURCES variables
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c9b4b50..1139616 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,19 +1,22 @@
bin_PROGRAMS = cmumble
-noinst_HEADERS = cmumble.h messages.h mumble.pb-c.h varint.h
-cmumble_SOURCES = cmumble.c messages.c mumble.pb-c.c varint.c
-cmumble_LDADD = $(PROTOBUF_LIBS) $(GLIB_LIBS) $(GIO_LIBS) $(GSTREAMER_LIBS) $(CELT_LIBS)
-EXTRA_DIST = mumble.proto messages.txt gen_message.sh
+noinst_HEADERS = cmumble.h varint.h
+nodist_noinst_HEADERS = messages.h mumble.pb-c.h
+
+cmumble_SOURCES = cmumble.c messages.c varint.c
+nodist_cmumble_SOURCES = mumble.pb-c.c
+cmumble_LDADD = $(PROTOBUF_LIBS) $(GLIB_LIBS) $(GIO_LIBS) $(GSTREAMER_LIBS) $(CELT_LIBS)
AM_CPPFLAGS = $(PROTOBUF_CFLAGS) $(GLIB_CFLAGS) $(GIO_CFLAGS) $(GSTREAMER_CFLAGS) $(CELT_CFLAGS)
+
AM_CFLAGS = $(GCC_FLAGS)
-$(cmumble_SOURCES): messages.h mumble.pb-c.h
+BUILT_SOURCES = $(nodist_cmumble_SOURCES) $(nodist_noinst_HEADERS)
+CLEANFILES = $(BUILT_SOURCES)
+EXTRA_DIST = mumble.proto messages.txt gen_messages.sed
messages.h: messages.txt gen_messages.sed
$(AM_V_GEN) $(SED) -f gen_messages.sed $< > $@
mumble.pb-c.c mumble.pb-c.h: mumble.proto
$(AM_V_GEN) $(PROTOBUF_EXECUTABLE) --c_out=. $<
-
-CLEANFILES = mumble.pb-c.c mumble.pb-c.h messages.h