|
Last change
on this file since 285 was 285, checked in by bird, 19 years ago |
|
This commit was generated by cvs2svn to compensate for changes in r284,
which included commits to RCS files with non-trunk default branches.
|
-
Property svn:eol-style
set to
native
|
|
File size:
876 bytes
|
| Line | |
|---|
| 1 | # -*-perl-*-
|
|---|
| 2 |
|
|---|
| 3 | $description = "Test make -B (always remake) option.\n";
|
|---|
| 4 |
|
|---|
| 5 | $details = "\
|
|---|
| 6 | Construct a simple makefile that builds a target.
|
|---|
| 7 | Invoke make once, so it builds everything. Invoke it again and verify
|
|---|
| 8 | that nothing is built. Then invoke it with -B and verify that everything
|
|---|
| 9 | is built again.";
|
|---|
| 10 |
|
|---|
| 11 | &touch('bar.x');
|
|---|
| 12 |
|
|---|
| 13 | run_make_test('
|
|---|
| 14 | .SUFFIXES:
|
|---|
| 15 |
|
|---|
| 16 | .PHONY: all
|
|---|
| 17 | all: foo
|
|---|
| 18 |
|
|---|
| 19 | foo: bar.x
|
|---|
| 20 | @echo cp $< $@
|
|---|
| 21 | @echo "" > $@
|
|---|
| 22 | ',
|
|---|
| 23 | '', 'cp bar.x foo');
|
|---|
| 24 |
|
|---|
| 25 | run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'.");
|
|---|
| 26 | run_make_test(undef, '-B', 'cp bar.x foo');
|
|---|
| 27 |
|
|---|
| 28 | # Put the timestamp for foo into the future; it should still be remade.
|
|---|
| 29 |
|
|---|
| 30 | utouch(1000, 'foo');
|
|---|
| 31 | run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'.");
|
|---|
| 32 | run_make_test(undef, '-B', 'cp bar.x foo');
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | # Clean up
|
|---|
| 36 |
|
|---|
| 37 | rmfiles('bar.x', 'foo');
|
|---|
| 38 |
|
|---|
| 39 | 1;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.