1 2 3 4 5 6 7
all: testfile test "$(shell cat $<)" = "Hello world" test "$(shell printf "\n")" = "" @echo TEST-PASS testfile: printf "Hello\nworld\n" > $@