aboutsummaryrefslogtreecommitdiffstats
path: root/marshal.mk
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-08 11:48:23 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-11-08 13:23:13 +0800
commit1ca2b18e67672b7b2ec87c43e99d246a7208943d (patch)
treedb501cad36e31ca1bdd5251bc1adbc28db313fea /marshal.mk
parentfa97b170141535096c942da880e473806cab115f (diff)
downloadgsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.tar
gsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.tar.gz
gsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.tar.bz2
gsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.tar.lz
gsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.tar.xz
gsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.tar.zst
gsoc2013-evolution-1ca2b18e67672b7b2ec87c43e99d246a7208943d.zip
Fix distcheck errors.EVOLUTION_2_91_2
Diffstat (limited to 'marshal.mk')
-rw-r--r--marshal.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/marshal.mk b/marshal.mk
new file mode 100644
index 0000000000..5da83b80ec
--- /dev/null
+++ b/marshal.mk
@@ -0,0 +1,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 )