-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.am
89 lines (73 loc) · 2.47 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
82
83
84
85
86
87
88
89
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = po \
libseed \
src \
extensions \
modules \
tests \
doc
doc_DATA = \
README \
COPYING \
AUTHORS \
ChangeLog \
INSTALL
pkgconfig_DATA = seed.pc
pkgconfigdir = $(libdir)/pkgconfig
man_MANS = doc/seed.1
EXTRA_DIST = $(pkgconfig_DATA)
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
profile-reset:
find -name '*.gcda' -delete
profile: profile-reset check
cp libseed/*.c libseed/.libs/
if PROFILE_MODULES
cp modules/readline/*.c modules/readline/.libs/
cp modules/example/*.c modules/example/.libs/
cp modules/sqlite/*.c modules/sqlite/.libs/
cp modules/canvas/*.c modules/canvas/.libs/
cp modules/Multiprocessing/*.c modules/Multiprocessing/.libs/
endif
cd libseed/.libs ; gcov *.c
if PROFILE_MODULES
cd modules/cairo/.libs ; gcov *.c
cd modules/canvas/.libs ; gcov *.c
cd modules/dbus/.libs ; gcov *.c
cd modules/example/.libs ; gcov *.c
cd modules/gettext/.libs ; gcov *.c
cd modules/gtkbuilder/.libs ; gcov *.c
cd modules/libxml/.libs ; gcov *.c
cd modules/os/.libs ; gcov *.c
cd modules/readline/.libs ; gcov *.c
cd modules/sandbox/.libs ; gcov *.c
cd modules/sqlite/.libs ; gcov *.c
endif
profile-gui: profile
if PROFILE_MODULES
lcov --directory libseed/.libs --directory modules/cairo/.libs --directory modules/canvas/.libs --directory modules/dbus/.libs --directory modules/example/.libs --directory modules/gettext/.libs --directory modules/gtkbuilder/.libs --directory modules/libxml/.libs --directory modules/os/.libs --directory modules/readline/.libs --directory modules/sandbox/.libs --directory modules/sqlite/.libs --capture --output-file seed.info
else
lcov --directory libseed/.libs --capture --output-file seed.info
endif
cp seed.info /tmp/
cd /tmp ; genhtml seed.info ; gnome-open index.html
# Copy all the spec files. Of course, only one is actually used.
# Generate the ChangeLog from the output of 'git log'.
dist-hook:
for specfile in *.spec; do \
if test -f $$specfile; then \
cp -p $$specfile $(distdir); \
fi \
done
@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