VirtualBox

Ignore:
Timestamp:
May 16, 2005 4:54:08 PM (19 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/misc/general4

    r53 r284  
    77
    88open(MAKEFILE,"> $makefile");
    9 
    10 # The contents of the Makefile ...
    11 
    129print MAKEFILE <<'EOF';
    1310# Make sure that subdirectories built as prerequisites are actually handled
     
    2219dir/subdir/%.a: dir/subdir/%.b ; @echo cp $< $@
    2320EOF
    24 
    2521close(MAKEFILE);
    2622
     
    2925&compare_output($answer,&get_logfile(1));
    3026
     27# Test implicit rules
     28
     29&touch('foo.c');
     30run_make_test('foo: foo.o',
     31              'CC="@echo cc" OUTPUT_OPTION=',
     32              'cc -c foo.c
     33cc foo.o -o foo');
     34unlink('foo.c');
     35
     36
     37# Test other implicit rule searching
     38
     39&touch('bar');
     40run_make_test('
     41test.foo:
     42%.foo : baz ; @echo done $<
     43%.foo : bar ; @echo done $<
     44fox: baz
     45',
     46              '',
     47              'done bar');
     48unlink('bar');
     49
    31501;
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