
* 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
8 lines
298 B
Makefile
8 lines
298 B
Makefile
%.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 )
|