summaryrefslogtreecommitdiffstats
path: root/tests/makefiles/conditionals.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/makefiles/conditionals.mk')
-rw-r--r--tests/makefiles/conditionals.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/makefiles/conditionals.mk b/tests/makefiles/conditionals.mk
index a783e60..aecd32a 100644
--- a/tests/makefiles/conditionals.mk
+++ b/tests/makefiles/conditionals.mk
@@ -93,5 +93,33 @@ boo \
hoo
!ENDIF
+# Test !else if syntax (alternative to !elseif with space)
+TEST11=false
+!if "A" == "B"
+TEST11=false
+!else if "A"=="A"
+TEST11=true
+!else
+TEST11=false
+!endif
+
+TEST12=false
+!ifdef NOT_DEFINED
+TEST12=false
+!else ifdef TEST1
+TEST12=true
+!else
+TEST12=false
+!endif
+
+TEST13=false
+!ifdef NOT_DEFINED
+TEST13=false
+!else ifndef NOT_DEFINED
+TEST13=true
+!else
+TEST13=false
+!endif
+
all: