forked from TeleMidia/ginga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
74 lines (65 loc) · 1.96 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
# Makefile.am -- Template for generating Makefile via Automake.
# Copyright (C) 2006-2018 PUC-Rio/Laboratorio TeleMidia
#
# This file is part of Ginga (Ginga-NCL).
#
# Ginga 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.
#
# Ginga 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 Ginga. If not, see <https://www.gnu.org/licenses/>.
include $(top_srcdir)/build-aux/Makefile.am.common
ACLOCAL_AMFLAGS= -I build-aux ${ACLOCAL_FLAGS}
SUBDIRS= lib src src-gui tests-ncl/generated tests
# Setup code coverage.
include $(top_srcdir)/build-aux/Makefile.am.coverage
COVERAGE_EXCLUDE+=
include doc/doc.mk
# 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 > $@
MAINTAINERCLEANFILES+=\
INSTALL\
ChangeLog\
Makefile.in\
aclocal.m4\
build-aux/ar-lib\
build-aux/compile\
build-aux/config.guess\
build-aux/config.sub\
build-aux/depcomp\
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/test-driver\
configure\
$(NULL)
clean-local: coverage-clean
rm -rf $(CLEANDIRS)