-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
81 lines (57 loc) · 1.64 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
73
74
75
76
77
78
79
80
81
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = \
--enable-glade-catalog \
--enable-gtk-doc \
--disable-doc-cross-references
SUBDIRS = libpeas loaders
GCOVDIRS = libpeas loaders
if ENABLE_GTK
SUBDIRS += libpeas-gtk peas-demo
GCOVDIRS += libpeas-gtk
endif
SUBDIRS += tests data po docs
dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/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 clone is required to generate a ChangeLog >&2; \
fi
test test-report perf-report full-report: all
@cd tests && $(MAKE) $(AM_MAKEFLAGS) $(@)
if GDB_ENABLED
test-gdb: all
@cd tests && $(MAKE) $(AM_MAKEFLAGS) $(@)
else
test-gdb:
@echo "You need GDB"
endif # GDB_ENABLED
if VALGRIND_ENABLED
test-valgrind test-callgrind: all
@cd tests && $(MAKE) $(AM_MAKEFLAGS) $(@)
else
test-valgrind test-callgrind:
@echo "You need Valgrind"
endif # VALGRIND_ENABLED
demo: all
@cd peas-demo && $(MAKE) $(AM_MAKEFLAGS) $(@)
if GCOV_ENABLED
gcov: test
@for dir in $(GCOVDIRS); do \
(cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $(@)); \
done
all-local:
@find . -name "*.gcda" -delete && find . -name "*.[ch].gcov" -delete
else
gcov:
@echo "You need to reconfigure with --enable-gcov"
endif # GCOV_ENABLED
.PHONY: test test-gdb test-valgrind test-callgrind \
test-report perf-report full-report gcov demo