aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am.marshal
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-01-21 15:53:46 -0500
committerKen VanDine <ken.vandine@canonical.com>2010-01-21 15:53:46 -0500
commit717a085c50ac2e0b93ca9c79fdcf954eb9e253f6 (patch)
treed42b60649d15d4dce8a13842126a7b1b3127f0c7 /Makefile.am.marshal
parentb6fb26bfc6ecc1f0a6b3cd24bf633adf3a6f74ed (diff)
parent8f6a206a4689150d8887dd653f13e72b2d320a15 (diff)
downloadlibayatana-indicator-0.3.1-0ubuntu1.tar.gz
libayatana-indicator-0.3.1-0ubuntu1.tar.bz2
libayatana-indicator-0.3.1-0ubuntu1.zip
releasing version 0.3.1-0ubuntu10.3.1-0ubuntu1
Diffstat (limited to 'Makefile.am.marshal')
-rw-r--r--Makefile.am.marshal45
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile.am.marshal b/Makefile.am.marshal
new file mode 100644
index 0000000..a6ab024
--- /dev/null
+++ b/Makefile.am.marshal
@@ -0,0 +1,45 @@
+# Rules for generating marshal files using glib-genmarshal
+#
+# Define:
+# glib_marshal_list = marshal list file
+# glib_marshal_prefix = prefix for marshal functions
+#
+# before including Makefile.am.marshal. You will also need to have
+# the following targets already defined:
+#
+# CLEANFILES
+# DISTCLEANFILES
+# BUILT_SOURCES
+# EXTRA_DIST
+#
+# Author: Emmanuele Bassi <ebassi@linux.intel.com>
+
+marshal_h = $(glib_marshal_list:.list=.h)
+marshal_c = $(glib_marshal_list:.list=.c)
+
+CLEANFILES += stamp-marshal
+DISTCLEANFILES += $(marshal_h) $(marshal_c)
+BUILT_SOURCES += $(marshal_h) $(marshal_c)
+EXTRA_DIST += $(glib_marshal_list)
+
+stamp-marshal: $(glib_marshal_list)
+ $(QUIET_GEN)$(GLIB_GENMARSHAL) \
+ --prefix=$(glib_marshal_prefix) \
+ --header \
+ $(srcdir)/$(glib_marshal_list) > xgen-mh \
+ && (cmp -s xgen-mh $(marshal_h) || cp -f xgen-mh $(marshal_h)) \
+ && rm -f xgen-mh \
+ && echo timestamp > $(@F)
+
+$(marshal_h): stamp-marshal
+ @true
+
+$(marshal_c): $(marshal_h)
+ $(QUIET_GEN)(echo "#include \"$(marshal_h)\"" ; \
+ $(GLIB_GENMARSHAL) \
+ --prefix=$(glib_marshal_prefix) \
+ --body \
+ $(srcdir)/$(glib_marshal_list)) > xgen-mc \
+ && cp xgen-mc $(marshal_c) \
+ && rm -f xgen-mc
+