marshal.mk 308 Bytes
Newer Older
Matthew Barnes's avatar
Matthew Barnes committed
1 2 3 4 5 6 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 -,_,$*) $(srcdir)/$*.list --body) > $@.tmp \
	&& mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 )