aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.mk
blob: 91fac93ff3e2e34d06853740f607583570b692ed (plain) (blame)
1
2
3
4
5
6
7
%.h: %.list
    ( $(GLIB_GENMARSHAL) --prefix=$(subst -,_,$*) $(srcdir)/$< --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 )