VirtualBox

source: kBuild/trunk/src/gmake/tests/scripts/options/dash-B@ 285

Last change on this file since 285 was 285, checked in by bird, 20 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 = "\
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.

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