VirtualBox

source: kBuild/vendor/gnumake/3.82-cvs/Makefile.am@ 2581

Last change on this file since 2581 was 2581, checked in by bird, 12 years ago

Sync'ed svn:eol-style with trunk.

  • Property svn:eol-style set to native
File size: 6.0 KB
Line 
1# This is a -*-Makefile-*-, or close enough
2#
3# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5# This file is part of GNU Make.
6#
7# GNU Make is free software; you can redistribute it and/or modify it under
8# the terms of the GNU General Public License as published by the Free Software
9# Foundation; either version 3 of the License, or (at your option) any later
10# version.
11#
12# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
13# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15# details.
16#
17# You should have received a copy of the GNU General Public License along with
18# this program. If not, see <http://www.gnu.org/licenses/>.
19
20AUTOMAKE_OPTIONS = 1.8 dist-bzip2 check-news
21ACLOCAL_AMFLAGS = -I config
22
23MAKE_HOST = @MAKE_HOST@
24
25# Only process if target is MS-Windows
26if WINDOWSENV
27 MAYBE_W32 = w32
28 W32INC = -I $(top_srcdir)/w32/include
29 W32LIB = -Lw32 -lw32
30endif
31
32SUBDIRS = glob config po doc $(MAYBE_W32)
33
34bin_PROGRAMS = make
35
36if USE_CUSTOMS
37 remote = remote-cstms.c
38else
39 remote = remote-stub.c
40endif
41
42
43make_SOURCES = ar.c arscan.c commands.c default.c dir.c expand.c file.c \
44 function.c getopt.c getopt1.c implicit.c job.c main.c \
45 misc.c read.c remake.c $(remote) rule.c signame.c \
46 strcache.c variable.c version.c vpath.c hash.c
47
48EXTRA_make_SOURCES = vmsjobs.c remote-stub.c remote-cstms.c
49
50noinst_HEADERS = commands.h dep.h filedef.h job.h make.h rule.h variable.h \
51 debug.h getopt.h gettext.h hash.h
52
53make_LDADD = @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ @LIBINTL@
54# Only process if target is MS-Windows
55if WINDOWSENV
56 make_LDADD += $(W32LIB)
57endif
58
59man_MANS = make.1
60
61DEFS = -DLOCALEDIR=\"$(localedir)\" -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\" @DEFS@
62
63AM_CPPFLAGS = $(GLOBINC)
64# Only process if target is MS-Windows
65if WINDOWSENV
66 AM_CPPFLAGS += $(W32INC)
67endif
68
69
70# Extra stuff to include in the distribution.
71
72EXTRA_DIST = README build.sh.in $(man_MANS) \
73 README.customs README.OS2 \
74 SCOPTIONS SMakefile \
75 README.Amiga Makefile.ami config.ami make.lnk amiga.c amiga.h \
76 README.DOS Makefile.DOS configure.bat dosbuild.bat configh.dos\
77 README.W32 NMakefile config.h.W32 build_w32.bat subproc.bat \
78 make_msvc_net2003.sln make_msvc_net2003.vcproj \
79 readme.vms makefile.vms makefile.com config.h-vms \
80 vmsdir.h vmsfunctions.c vmsify.c
81
82# This is built during configure, but behind configure's back
83
84DISTCLEANFILES = build.sh
85
86# Forward targets
87
88html:
89 cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
90
91.PHONY: html
92
93# --------------- Internationalization Section
94
95localedir = $(datadir)/locale
96
97# --------------- Local INSTALL Section
98
99# If necessary, change the gid of the app and turn on the setgid flag.
100#
101
102# Whether or not make needs to be installed setgid.
103# The value should be either `true' or `false'.
104# On many systems, the getloadavg function (used to implement the `-l'
105# switch) will not work unless make is installed setgid kmem.
106#
107inst_setgid = @NEED_SETGID@
108
109# Install make setgid to this group so it can get the load average.
110#
111inst_group = @KMEM_GROUP@
112
113install-exec-local:
114 @if $(inst_setgid); then \
115 app=$(DESTDIR)$(bindir)/`echo $(bin_PROGRAMS)|sed '$(transform)'`; \
116 if chgrp $(inst_group) $$app && chmod g+s $$app; then \
117 echo "chgrp $(inst_group) $$app && chmod g+s $$app"; \
118 else \
119 echo "$$app needs to be owned by group $(inst_group) and setgid;"; \
120 echo "otherwise the \`-l' option will probably not work."; \
121 echo "You may need special privileges to complete the installation"; \
122 echo "of $$app."; \
123 fi; \
124 else true; fi
125
126# --------------- Local DIST Section
127
128# Install the w32 and tests subdirectories
129#
130dist-hook:
131 (cd $(srcdir); \
132 sub=`find w32 tests -follow \( -name CVS -prune -o -name .cvsignore -o -name work -prune \) -o \( -name \*.orig -o -name \*.rej -o -name \*~ -prune \) -o -type f -print`; \
133 tar chf - $$sub) \
134 | (cd $(distdir); tar xfBp -)
135
136
137# --------------- Local CHECK Section
138
139check-local: check-regression check-loadavg
140 @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
141 dashes=`echo "$$banner" | sed s/./=/g`; \
142 echo; \
143 echo "$$dashes"; \
144 echo "$$banner"; \
145 echo "$$dashes"; \
146 echo
147
148.PHONY: check-loadavg check-regression
149
150check-loadavg: loadavg$(EXEEXT)
151 @echo The system uptime program believes the load average to be:
152 -uptime
153 @echo The GNU load average checking code thinks:
154 -./loadavg$(EXEEXT)
155
156# The loadavg function is invoked during "make check" to test getloadavg.
157check_PROGRAMS = loadavg
158nodist_loadavg_SOURCES = getloadavg.c
159loadavg_CPPFLAGS = -DTEST
160loadavg_LDADD = @GETLOADAVG_LIBS@
161
162# > check-regression
163#
164# Look for the make test suite, and run it if found and we can find perl.
165# If we're building outside the tree, we use symlinks to make a local copy of
166# the test suite. Unfortunately the test suite itself isn't localizable yet.
167#
168MAKETESTFLAGS =
169
170check-regression:
171 @if test -f "$(srcdir)/tests/run_make_tests"; then \
172 if $(PERL) -v >/dev/null 2>&1; then \
173 case `cd $(srcdir); pwd` in `pwd`) : ;; \
174 *) test -d tests || mkdir tests; \
175 rm -f srctests; \
176 if ln -s "$(srcdir)/tests" srctests; then \
177 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
178 rm -f tests/$$f; ln -s ../srctests/$$f tests; \
179 done; fi ;; \
180 esac; \
181 echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make$(EXEEXT) $(MAKETESTFLAGS)"; \
182 cd tests && $(PERL) ./run_make_tests.pl -make ../make$(EXEEXT) $(MAKETESTFLAGS); \
183 else \
184 echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
185 fi; \
186 else \
187 echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
188 fi
189
190
191# --------------- Maintainer's Section
192
193# Tell automake that I haven't forgotten about this file and it will be
194# created before we build a distribution (see maintMakefile in the CVS
195# distribution).
196
197README:
198
199@MAINT_MAKEFILE@
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette