VirtualBox

source: kBuild/branches/GNU/src/gmake/Makefile.am@ 157

Last change on this file since 157 was 153, checked in by bird, 20 years ago

GNU Make 3.81beta1.

  • Property svn:eol-style set to native
File size: 4.7 KB
Line 
1# This is a -*-Makefile-*-, or close enough
2
3AUTOMAKE_OPTIONS = 1.8 dist-bzip2 check-news ansi2knr
4ACLOCAL_AMFLAGS = -I config
5
6SUBDIRS = glob config po doc
7
8bin_PROGRAMS = make
9
10if USE_CUSTOMS
11 remote = remote-cstms.c
12else
13 remote = remote-stub.c
14endif
15
16
17make_SOURCES = ar.c arscan.c commands.c default.c dir.c expand.c file.c \
18 function.c getopt.c getopt1.c implicit.c job.c main.c \
19 misc.c read.c remake.c $(remote) rule.c signame.c \
20 variable.c version.c vpath.c hash.c
21
22EXTRA_make_SOURCES = remote-stub.c remote-cstms.c
23
24noinst_HEADERS = commands.h dep.h filedef.h job.h make.h rule.h variable.h \
25 debug.h getopt.h gettext.h hash.h
26
27make_LDADD = @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ @LIBINTL@
28
29man_MANS = make.1
30
31DEFS = -DLOCALEDIR=\"$(localedir)\" -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\" @DEFS@
32
33AM_CPPFLAGS = $(GLOBINC)
34
35
36# Extra stuff to include in the distribution.
37# Note we need all the glob stuff here, rather than in glob/Makefile.am,
38# because often that directory isn't built on the systems used by the
39# maintainers.
40
41EXTRA_DIST = README build.sh.in $(man_MANS) \
42 README.customs README.OS2 \
43 SCOPTIONS SMakefile \
44 README.Amiga Makefile.ami config.ami make.lnk amiga.c amiga.h \
45 README.DOS Makefile.DOS configure.bat dosbuild.bat configh.dos\
46 README.W32 NMakefile config.h.W32 build_w32.bat subproc.bat \
47 readme.vms makefile.vms makefile.com config.h-vms \
48 vmsdir.h vmsfunctions.c vmsify.c
49
50MAKE_HOST = @MAKE_HOST@
51
52
53# Forward targets
54
55html:
56 cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
57
58.PHONY: html
59
60# --------------- Internationalization Section
61
62localedir = $(datadir)/locale
63
64# --------------- Local INSTALL Section
65
66# If necessary, change the gid of the app and turn on the setgid flag.
67#
68
69# Whether or not make needs to be installed setgid.
70# The value should be either `true' or `false'.
71# On many systems, the getloadavg function (used to implement the `-l'
72# switch) will not work unless make is installed setgid kmem.
73#
74inst_setgid = @NEED_SETGID@
75
76# Install make setgid to this group so it can get the load average.
77#
78inst_group = @KMEM_GROUP@
79
80install-exec-local:
81 @if $(inst_setgid); then \
82 app=$(DESTDIR)$(bindir)/`echo $(bin_PROGRAMS)|sed '$(transform)'`; \
83 if chgrp $(inst_group) $$app && chmod g+s $$app; then \
84 echo "chgrp $(inst_group) $$app && chmod g+s $$app"; \
85 else \
86 echo "$$app needs to be owned by group $(inst_group) and setgid;"; \
87 echo "otherwise the \`-l' option will probably not work."; \
88 echo "You may need special privileges to complete the installation"; \
89 echo "of $$app."; \
90 fi; \
91 else true; fi
92
93# --------------- Local DIST Section
94
95# Install the w32 and tests subdirectories
96#
97dist-hook:
98 (cd $(srcdir); \
99 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`; \
100 tar chf - $$sub) \
101 | (cd $(distdir); tar xfBp -)
102
103
104# --------------- Local CHECK Section
105
106check-local: check-regression check-loadavg
107 @banner=" Regression PASSED: GNU Make $(VERSION) ($(MAKE_HOST)) built with $(CC) "; \
108 dashes=`echo "$$banner" | sed s/./=/g`; \
109 echo; \
110 echo "$$dashes"; \
111 echo "$$banner"; \
112 echo "$$dashes"; \
113 echo
114
115.PHONY: check-loadavg check-regression
116
117check-loadavg: loadavg
118 @echo The system uptime program believes the load average to be:
119 -uptime
120 @echo The GNU load average checking code thinks:
121 -./loadavg
122
123# The loadavg function is invoked during "make check" to test getloadavg.
124noinst_PROGRAMS = loadavg
125nodist_loadavg_SOURCES = getloadavg.c
126loadavg_CPPFLAGS = -DTEST
127loadavg_LDADD = @GETLOADAVG_LIBS@
128
129# > check-regression
130#
131# Look for the make test suite, and run it if found and we can find perl.
132# If we're building outside the tree, we use symlinks to make a local copy of
133# the test suite. Unfortunately the test suite itself isn't localizable yet.
134#
135MAKETESTFLAGS =
136
137check-regression:
138 @if test -f "$(srcdir)/tests/run_make_tests"; then \
139 if $(PERL) -v >/dev/null 2>&1; then \
140 case `cd $(srcdir); pwd` in `pwd`) : ;; \
141 *) test -d tests || mkdir tests; \
142 rm -f srctests; \
143 if ln -s "$(srcdir)/tests" srctests; then \
144 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
145 rm -f tests/$$f; ln -s ../srctests/$$f tests; \
146 done; fi ;; \
147 esac; \
148 echo "cd tests && $(PERL) ./run_make_tests.pl -make ../make$(EXEEXT) $(MAKETESTFLAGS)"; \
149 cd tests && $(PERL) ./run_make_tests.pl -make ../make$(EXEEXT) $(MAKETESTFLAGS); \
150 else \
151 echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
152 fi; \
153 else \
154 echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
155 fi
156
157
158# --------------- Maintainer's Section
159
160@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