diff options
author | Ted Gould <ted@canonical.com> | 2009-10-22 15:06:13 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-22 15:06:13 -0500 |
commit | 20d116ae0d74559cd5f30fe4f1bff08ed6378176 (patch) | |
tree | 0f462df1fa68bf689036afb5b413064a7bfb8a3a /Makefile.am.marshal | |
parent | 664bc74b6f0b3eb6ca30539628e2350ed3a2e20c (diff) | |
parent | 72815e195b42b8c4ed94f09af4b86a0d94393e5e (diff) | |
download | libayatana-appindicator-20d116ae0d74559cd5f30fe4f1bff08ed6378176.tar.gz libayatana-appindicator-20d116ae0d74559cd5f30fe4f1bff08ed6378176.tar.bz2 libayatana-appindicator-20d116ae0d74559cd5f30fe4f1bff08ed6378176.zip |
Branch building up the interface for the library.
Diffstat (limited to 'Makefile.am.marshal')
-rw-r--r-- | Makefile.am.marshal | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile.am.marshal b/Makefile.am.marshal new file mode 100644 index 0000000..8b30d4f --- /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 \ + $(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 \ + $(glib_marshal_list)) > xgen-mc \ + && cp xgen-mc $(marshal_c) \ + && rm -f xgen-mc + |