mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-13 01:07:36 +00:00
33 lines
598 B
Text
33 lines
598 B
Text
|
# -*-perl-*-
|
||
|
|
||
|
$description = "Test the --print-targets option to GNU Make.";
|
||
|
|
||
|
# Define various things and verify the output
|
||
|
run_make_test(q!
|
||
|
.PHONY: all
|
||
|
all: ;@:
|
||
|
|
||
|
# "special" target
|
||
|
.BOGUS: ;@:
|
||
|
|
||
|
# Check various forms of suffix rule
|
||
|
.SUFFIXES: .q
|
||
|
.q: ;@:
|
||
|
.c.o: ;@:
|
||
|
|
||
|
# Not a suffix rule
|
||
|
.x.z: ;@:
|
||
|
|
||
|
# Verify included files aren't built / don't fail
|
||
|
|
||
|
include badfile
|
||
|
include goodfile
|
||
|
|
||
|
submake: ; $(MAKE) all
|
||
|
always: ; +echo always
|
||
|
goodfile: ; touch goodfile
|
||
|
!,
|
||
|
"--print-targets", "submake\n.x.z\nalways\nall\ngoodfile\n");
|
||
|
|
||
|
1;
|