michael@0: $(shell \ michael@0: touch test.file; \ michael@0: touch .testhidden; \ michael@0: mkdir foo; \ michael@0: touch foo/testfile; \ michael@0: ) michael@0: michael@0: all: michael@0: test "$(abspath test.file)" = "$(CURDIR)/test.file" michael@0: test "$(realpath test.file)" = "$(CURDIR)/test.file" michael@0: test "$(sort $(wildcard *))" = "foo test.file" michael@0: # commented out because GNU make matches . and .. while python doesn't, and I don't michael@0: # care enough michael@0: # test "$(sort $(wildcard .*))" = ". .. .testhidden" michael@0: test "$(sort $(wildcard test*))" = "test.file" michael@0: test "$(sort $(wildcard foo/*))" = "foo/testfile" michael@0: test "$(sort $(wildcard ./*))" = "./foo ./test.file" michael@0: test "$(sort $(wildcard f?o/*))" = "foo/testfile" michael@0: @echo TEST-PASS