-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
72 lines (58 loc) · 2.14 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
62
63
64
65
66
67
68
69
70
71
72
ACLOCAL_AMFLAGS = -I build-aux
EXTRA_DIST = \
build-aux/ax_pthread.m4 \
build-aux/glibtests.m4 \
build-aux/glib-tap.mk \
build-aux/introspection.m4 \
build-aux/tap-driver.sh \
build-aux/git-version-gen \
build-aux/tap-test
SUBDIRS = src doc
if BUILD_TESTS
# conditionally recurse only if we build the test suite
SUBDIRS += tests
endif
# see git-version-gen
dist-hook: gen-ChangeLog
echo $(VERSION) > $(distdir)/.tarball-version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
BUILT_SOURCES = $(top_srcdir)/.version
EXTRA_DIST += $(top_srcdir)/.version
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
gen-ChangeLog:
@if test -d "$(srcdir)/.git"; then \
echo Generating ChangeLog... ; \
( cd "$(srcdir)" \
&& $(top_srcdir)/build-aux/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 gcoroutine-lcov.info --test-name GCOROUTINE_TEST --no-checksum
$(SED) -e 's#.libs/##' < gcoroutine-lcov.info > gcoroutine-lcov.info.tmp
LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory gcoroutine-lcov --title "GCoroutine Code Coverage" --show-details gcoroutine-lcov.info.tmp
rm -f gcoroutine-lcov.info.tmp
lcov-clean:
-$(LTP) --directory $(top_builddir) -z
-$(RM) -rf gcoroutine-lcov.info gcoroutine-lcov
else
lcov genlcov lcov-clean:
@echo You need to configure GCoroutine with --enable-code-coverage
endif
.PHONY: lcov genlcov lcov-clean
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL)
-include $(top_srcdir)/git.mk