-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
127 lines (113 loc) · 2.93 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Makefile.am -- Template for generating Makefile via Automake.
# Copyright (C) 2015-2018 PUC-Rio/Laboratorio TeleMidia
#
# This file is part of LibPlay.
#
# LibPlay is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibPlay is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibPlay. If not, see <http://www.gnu.org/licenses/>.
include $(top_srcdir)/build-aux/Makefile.am.common
SUBDIRS= lib src
if WITH_LUA
SUBDIRS+= play
endif
if ENABLE_GTK_DOC
SUBDIRS+= doc
endif
SUBDIRS+= examples tests
ACLOCAL_AMFLAGS= -I build-aux ${ACLOCAL_FLAGS}
# Generate API documentation.
if ENABLE_GTK_DOC
GTK_DOC_DEPENDENCIES= all
GTK_DOC_RECURSIVE= cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
else
GTK_DOC_DEPENDENCIES=
GTK_DOC_RECURSIVE=
endif
.PHONY: doc docs
doc docs: $(GTK_DOC_DEPENDENCIES)
@$(GTK_DOC_RECURSIVE)
# Setup code coverage.
include $(top_srcdir)/build-aux/Makefile.am.coverage
COVERAGE_EXCLUDE+= tests/\*
# Setup version.
BUILT_SOURCES= .version
.version:
$(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
# Prepare distribution.
include $(top_srcdir)/build-aux/Makefile.am.gitlog
dist-hook:
@echo $(VERSION) > $(distdir)/.tarball-version
EXTRA_DIST=\
.version\
README.md\
TODO\
bootstrap\
build-aux/git-log-fix\
build-aux/git-version-gen\
build-aux/gitlog-to-changelog\
build-aux/manywarnings.m4\
build-aux/perl.m4\
build-aux/syntax-check-copyright\
build-aux/syntax-check\
build-aux/useless-if-before-free\
build-aux/util.m4\
build-aux/warnings.m4\
cfg.mk\
maint.mk\
$(NULL)
# Generate README from README.md if we have Perl.
if HAVE_PERL
BUILT_SOURCES+= README
CLEANFILES+= README
EXTRA_DIST+= README
endif
perl_strip_md_id_or_path_re= [\w\.\-/:]
perl_strip_md=\
BEGIN { $$n = 0; }\
s, , ,g;\
s,`($(perl_strip_md_id_or_path_re)+)`,$$1,g;\
s,^!.*$$,,g;\
s,\[[^\]]+]\(($(perl_strip_md_id_or_path_re)+)\),$$1,g;\
$$n >= 2 and print;\
$$n++;\
$(NULL)
README: README.md
$(AM_V_GEN)$(PERL) -wnle '$(perl_strip_md)' README.md > $@
DISTCLEANFILES+=\
config.cache\
$(NULL)
MAINTAINERCLEANFILES+=\
.version\
INSTALL\
aclocal.m4\
build-aux/ar-lib\
build-aux/compile\
build-aux/config.guess\
build-aux/config.sub\
build-aux/depcomp\
build-aux/gtk-doc.m4\
build-aux/install-sh\
build-aux/libtool.m4\
build-aux/ltmain.sh\
build-aux/ltoptions.m4\
build-aux/ltsugar.m4\
build-aux/ltversion.m4\
build-aux/lt~obsolete.m4\
build-aux/missing\
build-aux/mkinstalldirs\
build-aux/test-driver\
configure\
gtk-doc.make\
lib/config.h.in\
lib/config.h.in~\
$(NULL)