forked from ebassi/graphene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
61 lines (51 loc) · 1.87 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ACLOCAL_AMFLAGS = -I build/autotools
EXTRA_DIST = \
build/autotools/ax_pthread.m4 \
build/autotools/glibtests.m4 \
build/autotools/glib-tap.mk \
build/autotools/graphene-macros.m4 \
build/autotools/introspection.m4 \
build/autotools/tap-driver.sh \
build/autotools/tap-test \
build/solaris-hwcap.mapfile
SUBDIRS = src doc
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
dist-hook:
@if test -d "$(srcdir)/.git"; then \
echo Generating ChangeLog... ; \
( cd "$(srcdir)" \
&& $(top_srcdir)/build/missing --run git log --stat ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git checkout is required to generate a ChangeLog >&2; \
fi
if ENABLE_GCOV
# use recursive makes in order to ignore errors during check/perf
lcov:
-$(MAKE) $(AM_MAKEFLAGS) check
$(MAKE) $(AM_MAKEFLAGS) genlcov
# we have to massage the lcov.info file slightly to hide the effect of libtool
# placing the objects files in the .libs/ directory separate from the *.c
genlcov:
$(LTP) --directory $(top_builddir) --capture --output-file graphene-lcov.info --test-name GRAPHENE_TEST --no-checksum
$(SED) -e 's#.libs/##' < graphene-lcov.info > graphene-lcov.info.tmp
LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory graphene-lcov --title "Graphene Code Coverage" --show-details graphene-lcov.info.tmp
rm -f graphene-lcov.info.tmp
lcov-clean:
-$(LTP) --directory $(top_builddir) -z
-$(RM) -rf graphene-lcov.info graphene-lcov
else
lcov genlcov lcov-clean:
@echo You need to configure Graphene with --enable-code-coverage
endif
.PHONY: lcov genlcov lcov-clean
if BUILD_BENCHMARKS
benchmark:
$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src/bench benchmark
else
benchmark:
@echo You need to configure Graphene with --enable-benchmarks
endif
.PHONY: benchmark