blob: d3f9e65ed422e31255c8a1d492ba7b01d980ffa1 [file] [log] [blame]
# -*-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;