aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.mk
blob: 9d4298deaeb25ce5f832e31456fcfb2e0cd19799 (plain) (blame)
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 -,_,$*) $*.list --body) > $@.tmp \
    && mv $@.tmp $@ ) || ( rm -f $@.tmp && exit 1 )