Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/Makefile
1 | # comment | 1 | # comment | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include Makefile.in | 3 | include Makefile.in | ||
4 | -include Makefile.doesntexist | ||||
4 | 5 | | |||
5 | .PHONY: all | 6 | .PHONY: all | ||
6 | 7 | | |||
7 | all: target | 8 | all: target | ||
8 | 9 | | |||
9 | foo = bar $(var) \ | 10 | foo = bar $(var) \ | ||
10 | $(baz) quux | 11 | $(baz) quux | ||
11 | 12 | | |||
12 | ifeq ($(CC),gcc) | 13 | ifeq ($(CC),gcc) | ||
13 | bla=$(call func,param1,param2) | 14 | bla=$(call func,param1,param2) | ||
15 | else ifeq "x" "y" | ||||
16 | $(error this seems wrong) | ||||
14 | else | 17 | else | ||
15 | libs=$(normal_libs) | 18 | libs=$(normal_libs) | ||
16 | endif | 19 | endif | ||
17 | 20 | | |||
18 | target1: | 21 | target1: | ||
19 | error | 22 | error | ||
20 | 23 | | |||
21 | target2: bla.cpp $@ | 24 | target2: bla.cpp $@ | ||
22 | $(CC) bla.c -o bla.o | 25 | $(CC) bla.c -o bla.o | ||
23 | $(CC) bla.o $< \ | 26 | $(CC) bla.o $< \ | ||
24 | -o bla.exe | 27 | -o bla.exe | ||
25 | @echo "hello" | 28 | @echo "hello" |