blob: 1ef2431c6ede5f81a7c54f60bdd5e3065ab89301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $Id: testcase-assignments.kmk 3154 2018-03-15 23:35:33Z bird $
# Testcase for weird various assignment operators and parsing.
SIMPLE1 := simple1
ifneq ($(SIMPLE1),simple1)
$(error simple1 assignment no 1 failed: SIMPLE1=$(SIMPLE1))
endif
SIMPLE2 := simple2-$(SIMPLE1)
ifneq ($(SIMPLE2),simple2-simple1)
$(error simple assignment no 2 failed: $(SIMPLE2))
endif
$(SIMPLE1)-3 := simple3-$(SIMPLE1)
ifneq ($(simple1-3),simple3-simple1)
$(error simple assignment no 3 failed: $($(SIMPLE1)-3))
endif
$(subst 1,4,$(SIMPLE1)) := simple4
ifneq ($(simple4),simple4)
$(error simple assignment no 4 failed: simple4=$(simple4)) # (Including an equal inside the error call here.)
endif
all:
@echo okay
|