diff options
author | Dan Winship <danw@src.gnome.org> | 2003-07-24 00:38:42 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-07-24 00:38:42 +0800 |
commit | fb9b835fe3c590ede744c2a7b1508b6b418a0b8e (patch) | |
tree | de10bfbd01b12405ceeb8fa5ee4f21352edab821 /marshal.mk | |
parent | b167ce08618496b4017274f5b5d5d0bfbebe7d85 (diff) | |
download | gsoc2013-evolution-fb9b835fe3c590ede744c2a7b1508b6b418a0b8e.tar.gz gsoc2013-evolution-fb9b835fe3c590ede744c2a7b1508b6b418a0b8e.tar.zst gsoc2013-evolution-fb9b835fe3c590ede744c2a7b1508b6b418a0b8e.zip |
Define EVO_MARSHAL_RULE, which creates glib marshaller .c and .h files
* configure.in: Define EVO_MARSHAL_RULE, which creates glib
marshaller .c and .h files that don't cause gcc warnings
* marshal.mk: The Makefile fragment used by EVO_MARSHAL_RULE.
(Can't include newlines in an AC_SUBST, so we have to use
AC_SUBST_FILE)
* Makefile.am (EXTRA_DIST): add marshal.mk
svn path=/trunk/; revision=21910
Diffstat (limited to 'marshal.mk')
-rw-r--r-- | marshal.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/marshal.mk b/marshal.mk new file mode 100644 index 0000000000..9d4298deae --- /dev/null +++ b/marshal.mk @@ -0,0 +1,7 @@ +%.h: %.list + ( $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $< --header > $@.tmp \ + && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 ) + +%.c: %.list %.h + ( (echo "#include \"$*.h\""; $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $*.list --body) > $@.tmp \ + && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 ) |