Ignore:
Timestamp:
Mar 14, 2018, 10:28:10 PM (7 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

  • trunk/src/kmk/Makefile.am

    r3114 r3140  
    11# This is a -*-Makefile-*-, or close enough
    22#
    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.
    54# This file is part of GNU Make.
    65#
     
    1817# this program.  If not, see <http://www.gnu.org/licenses/>.
    1918
    20 AUTOMAKE_OPTIONS = 1.8 dist-bzip2 check-news
    21 ACLOCAL_AMFLAGS = -I config
     19AUTOMAKE_OPTIONS = dist-bzip2 silent-rules std-options
     20ACLOCAL_AMFLAGS = -I config
    2221
    2322MAKE_HOST =     @MAKE_HOST@
     
    2827  W32INC =      -I $(top_srcdir)/w32/include
    2928  W32LIB =      -Lw32 -lw32
     29  ossrc =
     30else
     31  ossrc =       posixos.c
    3032endif
    3133
     
    3537
    3638bin_PROGRAMS =  kmk kmk_redirect
     39include_HEADERS = gnumake.h
    3740
    3841if USE_CUSTOMS
     
    4245endif
    4346
    44 
    4547kmk_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) \
    4952                \
    5053                expreval.c \
     
    101104kmk_redirect_CFLAGS = -UKMK
    102105
    103 
    104106EXTRA_kmk_SOURCES = vmsjobs.c remote-stub.c remote-cstms.c
    105107
    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
     108noinst_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
    108110
    109111#kmk_LDADD =    @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ @LIBINTL@
    110 kmk_LDADD =     @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@
     112kmk_LDADD =     @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ \
     113                $(GUILE_LIBS)
    111114# Only process if target is MS-Windows
    112115if WINDOWSENV
     
    184187
    185188AM_CPPFLAGS =   $(GLOBINC) -I$(srcdir)/../lib -I$(srcdir)/../lib/kStuff/include
     189AM_CFLAGS =     $(GUILE_CFLAGS)
    186190# Only process if target is MS-Windows
    187191if WINDOWSENV
     
    192196# Extra stuff to include in the distribution.
    193197
    194 EXTRA_DIST =    README build.sh.in $(man_MANS) \
     198EXTRA_DIST =    ChangeLog README build.sh.in $(man_MANS) \
    195199                README.customs README.OS2 \
    196200                SCOPTIONS SMakefile \
     
    199203                README.W32 NMakefile config.h.W32 build_w32.bat subproc.bat \
    200204                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
    203209
    204210# This is built during configure, but behind configure's back
     
    206212DISTCLEANFILES = build.sh
    207213
    208 # Forward targets
    209 
    210 html:
    211         cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
    212 
    213 .PHONY: html
    214 
    215214# --------------- Internationalization Section
    216215
     
    223222
    224223# 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'
    227226# switch) will not work unless make is installed setgid kmem.
    228227#
     
    240239           else \
    241240             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."; \
    243242             echo "You may need special privileges to complete the installation"; \
    244243             echo "of $$app."; \
     
    246245         else true; fi
    247246
     247# --------------- Generate the Guile default module content
     248
     249guile.$(OBJEXT): gmk-default.h
     250gmk-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
    248256# --------------- Local DIST Section
    249257
     
    252260dist-hook:
    253261        (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`; \
    255263         tar chf - $$sub) \
    256264        | (cd $(distdir); tar xfBp -)
     
    290298MAKETESTFLAGS =
    291299
    292 check-regression:
    293         @if test -f "$(srcdir)/tests/run_make_tests"; then \
     300check-regression: tests/config-flags.pm
     301        @if test -f '$(srcdir)/tests/run_make_tests'; then \
     302          ulimit -n 128; \
    294303          if $(PERL) -v >/dev/null 2>&1; then \
    295             case `cd $(srcdir); pwd` in `pwd`) : ;; \
     304            case `cd '$(srcdir)'; pwd` in `pwd`) : ;; \
    296305              *) test -d tests || mkdir tests; \
    297306                 rm -f srctests; \
    298                  if ln -s "$(srcdir)/tests" srctests; then \
     307                 if ln -s '$(srcdir)/tests' srctests; then \
    299308                   for f in run_make_tests run_make_tests.pl test_driver.pl scripts; do \
    300309                     rm -f tests/$$f; ln -s ../srctests/$$f tests; \
    301310                   done; fi ;; \
    302311            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); \
    305314          else \
    306315            echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
    307316          fi; \
    308          else \
     317        else \
    309318          echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
    310          fi
     319        fi
    311320
    312321
     
    314323
    315324# 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 CVS
     325# created before we build a distribution (see maintMakefile in the Git
    317326# distribution).
    318327
Note: See TracChangeset for help on using the changeset viewer.