VirtualBox

source: kBuild/branches/GNU/src/gmake/tests/scripts/options/dash-B@ 284

Last change on this file since 284 was 284, checked in by bird, 20 years ago

Current make snaphot, 2005-05-16.

  • 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 = "\
6Construct a simple makefile that builds a target.
7Invoke make once, so it builds everything. Invoke it again and verify
8that nothing is built. Then invoke it with -B and verify that everything
9is built again.";
10
11&touch('bar.x');
12
13run_make_test('
14.SUFFIXES:
15
16.PHONY: all
17all: foo
18
19foo: bar.x
20 @echo cp $< $@
21 @echo "" > $@
22',
23 '', 'cp bar.x foo');
24
25run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'.");
26run_make_test(undef, '-B', 'cp bar.x foo');
27
28# Put the timestamp for foo into the future; it should still be remade.
29
30utouch(1000, 'foo');
31run_make_test(undef, '', "#MAKE#: Nothing to be done for `all'.");
32run_make_test(undef, '-B', 'cp bar.x foo');
33
34
35# Clean up
36
37rmfiles('bar.x', 'foo');
38
391;
Note: See TracBrowser for help on using the repository browser.

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