Changeset 3140 for trunk/src/kmk/Makefile.am
- Timestamp:
- Mar 14, 2018, 10:28:10 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
-
Property svn:mergeinfo
set to
/vendor/gnumake/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/kmk/Makefile.am
r3114 r3140 1 1 # This is a -*-Makefile-*-, or close enough 2 2 # 3 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 4 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3 # Copyright (C) 1997-2016 Free Software Foundation, Inc. 5 4 # This file is part of GNU Make. 6 5 # … … 18 17 # this program. If not, see <http://www.gnu.org/licenses/>. 19 18 20 AUTOMAKE_OPTIONS = 1.8 dist-bzip2 check-news21 ACLOCAL_AMFLAGS =-I config19 AUTOMAKE_OPTIONS = dist-bzip2 silent-rules std-options 20 ACLOCAL_AMFLAGS = -I config 22 21 23 22 MAKE_HOST = @MAKE_HOST@ … … 28 27 W32INC = -I $(top_srcdir)/w32/include 29 28 W32LIB = -Lw32 -lw32 29 ossrc = 30 else 31 ossrc = posixos.c 30 32 endif 31 33 … … 35 37 36 38 bin_PROGRAMS = kmk kmk_redirect 39 include_HEADERS = gnumake.h 37 40 38 41 if USE_CUSTOMS … … 42 45 endif 43 46 44 45 47 kmk_SOURCES = ar.c arscan.c commands.c default.c dir.c expand.c file.c \ 46 function.c getopt.c getopt1.c implicit.c job.c main.c \ 47 misc.c read.c remake.c $(remote) rule.c signame.c \ 48 strcache.c variable.c version.c vpath.c hash.c \ 48 function.c getopt.c getopt1.c guile.c implicit.c job.c load.c \ 49 loadapi.c main.c misc.c $(ossrc) output.c read.c remake.c \ 50 rule.c signame.c strcache.c variable.c version.c vpath.c \ 51 hash.c $(remote) \ 49 52 \ 50 53 expreval.c \ … … 101 104 kmk_redirect_CFLAGS = -UKMK 102 105 103 104 106 EXTRA_kmk_SOURCES = vmsjobs.c remote-stub.c remote-cstms.c 105 107 106 noinst_HEADERS = commands.h dep.h filedef.h job.h make .h rule.h variable.h \107 debug.h getopt.h gettext.h hash.h 108 noinst_HEADERS = commands.h dep.h filedef.h job.h makeint.h rule.h variable.h \ 109 debug.h getopt.h gettext.h hash.h output.h os.h 108 110 109 111 #kmk_LDADD = @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ @LIBINTL@ 110 kmk_LDADD = @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ 112 kmk_LDADD = @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ \ 113 $(GUILE_LIBS) 111 114 # Only process if target is MS-Windows 112 115 if WINDOWSENV … … 184 187 185 188 AM_CPPFLAGS = $(GLOBINC) -I$(srcdir)/../lib -I$(srcdir)/../lib/kStuff/include 189 AM_CFLAGS = $(GUILE_CFLAGS) 186 190 # Only process if target is MS-Windows 187 191 if WINDOWSENV … … 192 196 # Extra stuff to include in the distribution. 193 197 194 EXTRA_DIST = README build.sh.in $(man_MANS) \198 EXTRA_DIST = ChangeLog README build.sh.in $(man_MANS) \ 195 199 README.customs README.OS2 \ 196 200 SCOPTIONS SMakefile \ … … 199 203 README.W32 NMakefile config.h.W32 build_w32.bat subproc.bat \ 200 204 make_msvc_net2003.sln make_msvc_net2003.vcproj \ 201 readme.vms makefile.vms makefile.com config.h-vms \ 202 vmsdir.h vmsfunctions.c vmsify.c 205 README.VMS makefile.vms makefile.com config.h-vms \ 206 vmsdir.h vmsfunctions.c vmsify.c vms_exit.c vms_progname.c \ 207 vms_export_symbol.c vms_export_symbol_test.com \ 208 gmk-default.scm gmk-default.h 203 209 204 210 # This is built during configure, but behind configure's back … … 206 212 DISTCLEANFILES = build.sh 207 213 208 # Forward targets209 210 html:211 cd doc && $(MAKE) $(AM_MAKEFLAGS) $@212 213 .PHONY: html214 215 214 # --------------- Internationalization Section 216 215 … … 223 222 224 223 # Whether or not make needs to be installed setgid. 225 # The value should be either `true' or `false'.226 # On many systems, the getloadavg function (used to implement the `-l'224 # The value should be either 'true' or 'false'. 225 # On many systems, the getloadavg function (used to implement the '-l' 227 226 # switch) will not work unless make is installed setgid kmem. 228 227 # … … 240 239 else \ 241 240 echo "$$app needs to be owned by group $(inst_group) and setgid;"; \ 242 echo "otherwise the \`-l' option will probably not work."; \241 echo "otherwise the '-l' option will probably not work."; \ 243 242 echo "You may need special privileges to complete the installation"; \ 244 243 echo "of $$app."; \ … … 246 245 else true; fi 247 246 247 # --------------- Generate the Guile default module content 248 249 guile.$(OBJEXT): gmk-default.h 250 gmk-default.h: $(srcdir)/gmk-default.scm 251 (echo 'static const char *const GUILE_module_defn = " '\\ \ 252 && sed -e 's/;.*//' -e '/^[ \t]*$$/d' -e 's/"/\\"/g' -e 's/$$/ \\/' \ 253 $(srcdir)/gmk-default.scm \ 254 && echo '";') > $@ 255 248 256 # --------------- Local DIST Section 249 257 … … 252 260 dist-hook: 253 261 (cd $(srcdir); \ 254 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`; \262 sub=`find w32 tests -follow \( -name .git -o -name .deps -o -name work -o -name .gitignore -o -name \*.orig -o -name \*.rej -o -name \*~ -o -name Makefile \) -prune -o -type f -print`; \ 255 263 tar chf - $$sub) \ 256 264 | (cd $(distdir); tar xfBp -) … … 290 298 MAKETESTFLAGS = 291 299 292 check-regression: 293 @if test -f "$(srcdir)/tests/run_make_tests"; then \ 300 check-regression: tests/config-flags.pm 301 @if test -f '$(srcdir)/tests/run_make_tests'; then \ 302 ulimit -n 128; \ 294 303 if $(PERL) -v >/dev/null 2>&1; then \ 295 case `cd $(srcdir); pwd` in `pwd`) : ;; \304 case `cd '$(srcdir)'; pwd` in `pwd`) : ;; \ 296 305 *) test -d tests || mkdir tests; \ 297 306 rm -f srctests; \ 298 if ln -s "$(srcdir)/tests"srctests; then \307 if ln -s '$(srcdir)/tests' srctests; then \ 299 308 for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \ 300 309 rm -f tests/$$f; ln -s ../srctests/$$f tests; \ 301 310 done; fi ;; \ 302 311 esac; \ 303 echo "cd tests && $(PERL) ./run_make_tests.pl - make ../make$(EXEEXT) $(MAKETESTFLAGS)"; \304 cd tests && $(PERL) ./run_make_tests.pl - make ../make$(EXEEXT)$(MAKETESTFLAGS); \312 echo "cd tests && $(PERL) ./run_make_tests.pl -srcdir $(abs_srcdir) -make ../make$(EXEEXT) $(MAKETESTFLAGS)"; \ 313 cd tests && $(PERL) ./run_make_tests.pl -srcdir '$(abs_srcdir)' -make '../make$(EXEEXT)' $(MAKETESTFLAGS); \ 305 314 else \ 306 315 echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \ 307 316 fi; \ 308 317 else \ 309 318 echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \ 310 319 fi 311 320 312 321 … … 314 323 315 324 # Tell automake that I haven't forgotten about this file and it will be 316 # created before we build a distribution (see maintMakefile in the CVS325 # created before we build a distribution (see maintMakefile in the Git 317 326 # distribution). 318 327
Note:
See TracChangeset
for help on using the changeset viewer.