Changeset View
Changeset View
Standalone View
Standalone View
autotests/input/Makefile
Show All 28 Lines | |||||
29 | 29 | | |||
30 | # String Substitution | 30 | # String Substitution | ||
31 | VAR := $(ANOTHER_VAR:%=%+1) | 31 | VAR := $(ANOTHER_VAR:%=%+1) | ||
32 | 32 | | |||
33 | rempl := x | 33 | rempl := x | ||
34 | foo := a b c | 34 | foo := a b c | ||
35 | bar := foo | 35 | bar := foo | ||
36 | hello := $($(bar):a=$(rempl)) | 36 | hello := $($(bar):a=$(rempl)) | ||
37 | | ||||
38 | # Conditionals | ||||
39 | bar = | ||||
40 | foo = $(bar) | ||||
41 | ifdef bar | ||||
42 | frobozz = yes | ||||
43 | else ifdef foo | ||||
44 | frobozz = no | ||||
45 | endif | ||||
46 | | ||||
47 | error_type := 0 | ||||
48 | check: | ||||
49 | ifeq ($(error_type),0) | ||||
50 | else ifeq ($(error_type),1) | ||||
51 | else ifeq ($(error_type),2) | ||||
52 | else ifeq ($(error_type),3) | ||||
53 | endif |