aboutsummaryrefslogblamecommitdiffstats
path: root/marshal.mk
blob: 5da83b80ec1e4bcb0a8efc3ed457f4689a048c0a (plain) (tree)
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 )