diff options
Diffstat (limited to 'test/fixtures/make/Makefile')
-rw-r--r-- | test/fixtures/make/Makefile | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/test/fixtures/make/Makefile b/test/fixtures/make/Makefile index 1a6416cd..b04a6eb2 100644 --- a/test/fixtures/make/Makefile +++ b/test/fixtures/make/Makefile @@ -1,10 +1,15 @@ +$(info confuse: make) + +CFLAGS=-MMD -MP NAME := sample .PHONY: all all: $(NAME) -$(NAME): sample.c - cc -o $@ $^ +$(NAME): sample.o + +.INTERMEDIATE: sample.o +sample.o: sample.c .PHONY: install install: all @@ -14,3 +19,28 @@ install: all .PHONY: clean clean: -rm -f $(NAME) + +.test_passes: + ./sample >/dev/null + touch ^@ + +.cache/.1: + touch $@ + +.cache/.2: + touch $@ + +.cache/1: + touch $@ + +.cache/2: + touch $@ + +ifndef __BASH_MAKE_COMPLETION__ +-include sample.d +endif + +VARIABLE_LOOKS_A_BIT_LIKE_A_TARGET := fooled-you +extra_makefile: + touch $@ +include extra_makefile |