File: Makefile.am

package info (click to toggle)
seed-webkit2 4.0.0+20161014+6c77960+dfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,760 kB
  • sloc: ansic: 25,104; makefile: 1,023; xml: 206; python: 173; sh: 46
file content (99 lines) | stat: -rw-r--r-- 2,761 bytes parent folder | download | duplicates (2)
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
90
91
92
93
94
95
96
97
98
99
## Process this file with automake to produce Makefile.in

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-gtk-doc

SUBDIRS = po \
	jsextensions \
	libseed \
	libgjs-private \
	src \
	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)

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

if PROFILE_MODULES
	cp modules/gjs/system/*.c modules/system/.libs/
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/system/.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

CLEANFILES = \
	.ycm_extra_conf.pyc \
	$(NULL)

-include $(top_srcdir)/git.mk