-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
71 lines (55 loc) · 1.45 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
V = @
Q = $(V:1=)
QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
include $(top_srcdir)/gtest.mk
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsummer-1.0.pc
$(pkgconfig_DATA) : config.status
EXTRA_DIST = \
libsummer-1.0.pc.in \
libsummer-1.0-uninstalled.pc.in \
gen-changelog.py
DISTCLEANFILES = \
doltlibtool \
doltcompile
if USE_LCOV
coverage::
mkdir -p ./coverage
lcov --compat-libtool --directory . --zerocounters
-$(MAKE) test
lcov --compat-libtool --directory . --capture --output-file ./coverage/$(PACKAGE)_tmp.info
lcov --compat-libtool --extract ./coverage/$(PACKAGE)_tmp.info "*libsummer*" -o ./coverage/$(PACKAGE).info
$(RM) ./coverage/$(PACKAGE)_tmp.info
genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info
endif
dist-hook:
if test -d .git; then \
python $(top_srcdir)/gen-changelog.py > $(distdir)/cl-t; \
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
INCLUDES = \
$(CFLAGS) \
$(SUMMER_CFLAGS) \
$(DISABLE_DEPRECATED) \
-include $(CONFIG_HEADER) \
-Wall -Wextra \
-Wno-missing-field-initializers -Wno-unused-parameter \
-Werror -O0 -g
CLEANFILES =
clean-local:
rm -rf coverage
rm -f *.gcda
rm -f *.gcno
include libsummer.mk
include libsummer-tests.mk
if ENABLE_VALA
include vala.mk
endif
CLEANFILES += $(BUILT_SOURCES)
SUBDIRS = . docs/reference/summer
if ENABLE_PYTHON
SUBDIRS += bindings/python
endif