VirtualBox

Ignore:
Timestamp:
Jun 17, 2012 8:45:31 PM (12 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 3.82. Previous GNU make base version was gnumake-2008-10-28-CVS.

Location:
trunk/src/kmk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

    • Property svn:ignore
      •  

        old new  
        1313stamp-*
        1414makebook*
         15
        1516.*gdbinit
         17.gdb_history
         18
        1619*.dep
        1720*.dvi
         
        3134*.pg
        3235*.pgs
         36
        3337README
        3438README.DOS
        3539README.W32
         40README.OS2
        3641aclocal.m4
        3742autom4te.cache
         
        5257config.h.W32
        5358config.h-vms
         59
        5460loadavg
        5561loadavg.c
        5662make
         63
        5764.deps
        5865.dep_segment
         66ID
         67TAGS
         68
        5969_*
        6070sun4
         
        7282sol2
        7383i486-linux
         84
        7485customs
         86
        7587install-sh
        7688mkinstalldirs
         89
         90.directive.asc
  • trunk/src/kmk/tests

    • Property svn:ignore
      --- 
      +++ 
      
  • trunk/src/kmk/tests/scripts/features/patternrules

    • Property svn:keywords deleted
    r1952 r2591  
    1616#
    1717
    18 run_make_test('
     18run_make_test(q!
    1919.PHONY: all
    2020
    2121all: case.1 case.2 case.3
    22 a: void
     22
     23# We can't have this, due to "Implicit Rule Search Algorithm" step 5c
     24#xxx: void
    2325
    2426# 1 - existing file
     
    4244
    43453.implicit-phony:
    44 ',
    45 '',
    46 '');
     46!, '', '');
    4747
    4848# TEST #1: make sure files that are built via implicit rules are marked
     
    150150unlink('foo.in', 'foo.h', 'foo.c', 'foo.o');
    151151
     152# TEST #5: make sure both prefix and suffix patterns work with multiple
     153#          target patterns (Savannah bug #26593).
     154#
     155run_make_test('
     156all: foo.s1 foo.s2 p1.foo p2.foo
     157
     158p1.% p2.%: %.orig
     159        @echo $@
     160%.s1 %.s2: %.orig
     161        @echo $@
     162
     163.PHONY: foo.orig
     164',
     165              '', "foo.s1\np1.foo\n");
     166
     167# TEST 6: Make sure that non-target files are still eligible to be created
     168# as part of implicit rule chaining.  Savannah bug #17752.
     169
     170run_make_test(q!
     171BIN = xyz
     172COPY = $(BIN).cp
     173SRC = $(BIN).c
     174allbroken: $(COPY) $(BIN) ; @echo ok
     175$(SRC): ; @echo 'main(){}' > $@
     176%.cp: % ; @cp $< $@
     177% : %.c ; @cp $< $@
     178clean: ; @rm -rf $(SRC) $(COPY) $(BIN)
     179!,
     180              '', "ok\n");
     181
     182unlink(qw(xyz xyz.cp xyz.c));
     183
     184# TEST 7: Make sure that all prereqs of all "also_make" targets get created
     185# before any of the things that depend on any of them.  Savannah bug #19108.
     186
     187run_make_test(q!
     188final: x ; @echo $@
     189x: x.t1 x.t2 ; @echo $@
     190x.t2: dep
     191dep: ; @echo $@
     192%.t1 %.t2: ; @echo $*.t1 ; echo $*.t2
     193!,
     194              '', "dep\nx.t1\nx.t2\nx\nfinal\n");
     195
     196
     197# TEST 8: Verify we can remove pattern rules.  Savannah bug #18622.
     198
     199my @f = (qw(foo.w foo.ch));
     200touch(@f);
     201
     202run_make_test(q!
     203CWEAVE := :
     204
     205# Disable builtin rules
     206%.tex : %.w
     207%.tex : %.w %.ch
     208!,
     209              'foo.tex',
     210              "#MAKE#: *** No rule to make target `foo.tex'.  Stop.", 512);
     211
     212unlink(@f);
     213
     214# TEST #9: Test shortest stem selection in pattern rules.
     215
     216run_make_test('
     217%.x: ;@echo one
     218%-mt.x: ;@echo two
     219
     220all: foo.x foo-mt.x
     221',
     222'',
     223"one\ntwo");
     224
     2251;
     226
    152227# This tells the test driver that the perl test script executed properly.
    1532281;
Note: See TracChangeset for help on using the changeset viewer.

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