Don't use the GNOME coverage macros
[platform/upstream/gcr.git] / Makefile.decl
1 NULL =
2
3 TEST_ARGS =
4
5 TEST_SUPPRESSIONS = $(top_builddir)/build/valgrind-suppressions
6
7 perform-memcheck: $(TEST_PROGS)
8         make -C $(top_builddir)/build all
9         @for test in $(TEST_PROGS); do \
10                 G_SLICE=always-malloc libtool --mode=execute \
11                         valgrind --trace-children=no --gen-suppressions=all \
12                         --suppressions=$(TEST_SUPPRESSIONS) \
13                         --leak-check=full --show-reachable=yes --num-callers=16 \
14                         --quiet --error-exitcode=3 \
15                         $(builddir)/$$test $(TEST_ARGS) || exit 3; \
16         done
17
18 V_ASN1 = $(V_ASN1_$(V))
19 V_ASN1_ = $(V_ASN1_$(AM_DEFAULT_VERBOSITY))
20 V_ASN1_0 = @echo "  ASN1  " $@;
21
22 .asn.asn.h:
23         $(V_ASN1) $(ASN1PARSER) -o $@ $< && sed -i 's|#include.*|/* \0 */|' $@
24
25 V_SED = $(V_SED_$(V))
26 V_SED_ = $(V_SED_$(AM_DEFAULT_VERBOSITY))
27 V_SED_0 = @echo "  SED  " $@;
28
29 SED_SUBST = sed \
30         -e 's,[@]datadir[@],$(datadir),g' \
31         -e 's,[@]libexecdir[@],$(libexecdir),g' \
32         -e 's,[@]libdir[@],$(libdir),g' \
33         -e 's,[@]includedir[@],$(includedir),g' \
34         -e 's,[@]datarootdir[@],$(datarootdir),g' \
35         -e 's,[@]sysconfdir[@],$(sysconfdir),g' \
36         -e 's,[@]bindir[@],$(bindir),g' \
37         -e 's,[@]exec_prefix[@],$(exec_prefix),g' \
38         -e 's,[@]prefix[@],$(prefix),g' \
39         -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
40         -e 's,[@]VERSION[@],$(VERSION),g' \
41         $(NULL)
42
43 .desktop.in.in.desktop.in:
44         $(V_SED) $(SED_SUBST) $< > $@
45
46 @INTLTOOL_DESKTOP_RULE@
47
48 .service.in.service:
49         $(V_SED) $(SED_SUBST) $< > $@
50
51 pkgconfigdir = $(libdir)/pkgconfig
52
53 ENUM_TEMPLATE_C = $(top_srcdir)/build/enum-template.c
54 ENUM_TEMPLATE_H = $(top_srcdir)/build/enum-template.h
55
56 SUFFIXES = .asn .asn.h .desktop.in .desktop.in.in .service .service.in