Last change
on this file was 3154, checked in by bird, 7 years ago |
kmk_cc_exec: Some more work.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
646 bytes
|
Rev | Line | |
---|
[3154] | 1 | # $Id: testcase-assignments.kmk 3154 2018-03-15 23:35:33Z bird $
|
---|
| 2 | # Testcase for weird various assignment operators and parsing.
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | SIMPLE1 := simple1
|
---|
| 7 | ifneq ($(SIMPLE1),simple1)
|
---|
| 8 | $(error simple1 assignment no 1 failed: SIMPLE1=$(SIMPLE1))
|
---|
| 9 | endif
|
---|
| 10 |
|
---|
| 11 | SIMPLE2 := simple2-$(SIMPLE1)
|
---|
| 12 | ifneq ($(SIMPLE2),simple2-simple1)
|
---|
| 13 | $(error simple assignment no 2 failed: $(SIMPLE2))
|
---|
| 14 | endif
|
---|
| 15 |
|
---|
| 16 | $(SIMPLE1)-3 := simple3-$(SIMPLE1)
|
---|
| 17 | ifneq ($(simple1-3),simple3-simple1)
|
---|
| 18 | $(error simple assignment no 3 failed: $($(SIMPLE1)-3))
|
---|
| 19 | endif
|
---|
| 20 |
|
---|
| 21 | $(subst 1,4,$(SIMPLE1)) := simple4
|
---|
| 22 | ifneq ($(simple4),simple4)
|
---|
| 23 | $(error simple assignment no 4 failed: simple4=$(simple4)) # (Including an equal inside the error call here.)
|
---|
| 24 | endif
|
---|
| 25 |
|
---|
| 26 | all:
|
---|
| 27 | @echo okay
|
---|
| 28 |
|
---|
| 29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.