-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
61 lines (52 loc) · 2.44 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
# Makefile.am: Part of GNU CSSC.
#
# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
# 2007, 2008, 2009, 2010, 2011, 2014, 2019, 2024 Free Software
# Foundation, Inc.
#
# This program 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 3 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
#
#
## Process this file with automake to generate "Makefile.in"
##
## Since it doesn't start with "##", the following line will be copied
## into Makefile.in, and become the first line.
# Running ./configure will generate a Makefile from this file.
# We keep "tests" as the last named subdirectory in SUBDIRS,
# so that when we do "make check", the "Tests passed" message
# is emitted last (we wouldn't want "entering directory unused"
# messages to make that scroll off the screen).
#
# We run the unit tests before the regression tests in order to make
# it more obvious where the bug is when there is a test failure.
# ACLOCAL_AMFLAGS should mirror AC_CONFIG_MACRO_DIR in configure.ac
ACLOCAL_AMFLAGS = -I m4 -I unit-tests/googletest/googletest/m4
SUBDIRS = gl docs testutils auxfiles src sccs-cgi unit-tests tests
EXTRA_DIST = ChangeLog ChangeLog.1 ChangeLog.2 ChangeLog.3
dist-hook: gen-ChangeLog
distcheck-hook:
sh "$(srcdir)/build-aux/check-googletest-files.sh" "$(srcdir)" "$(DIST_ARCHIVES)"
# gen-Changelog must still work when $(top_srcdir)/.git does not exist
# because "make distcheck" verifies that you can "make dist" from the
# tarball generated by "make dist". We still need that to work.
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -d $(top_srcdir)/.git; then \
$(AUXDIR)/gen-changelog.sh $(top_srcdir) > $(distdir)/cl-t \
&& { rm -f $(distdir)/ChangeLog \
&& mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
else \
echo "WARNING: $@: cannot generate ChangeLog since" >&2 && \
echo "$(top_srcdir) has no .git subdirectory" >&2 ; \
fi