diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-06-30 13:05:10 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-06-30 14:47:39 +0900 |
commit | c4f7662b112a232e313b69706f148de4e69b9f21 (patch) | |
tree | 52a47b1b3b9afe6c97aa84087c105f6ea5ad36dc /testcase | |
parent | dbd6b572694f8f4d85a764282c04adc5b7577591 (diff) | |
download | kati-c4f7662b112a232e313b69706f148de4e69b9f21.tar.gz |
[C++] Allow targets which start with `='.
but with a kati-specific warning message. This fixes #83.
Diffstat (limited to 'testcase')
-rw-r--r-- | testcase/empty_target_specific_var.mk | 7 | ||||
-rw-r--r-- | testcase/empty_target_specific_var2.mk | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/testcase/empty_target_specific_var.mk b/testcase/empty_target_specific_var.mk new file mode 100644 index 0000000..fd9e6c1 --- /dev/null +++ b/testcase/empty_target_specific_var.mk @@ -0,0 +1,7 @@ +# TODO(go): https://github.com/google/kati/issues/83 + +test: =foo + +var==foo +$(var): + echo PASS diff --git a/testcase/empty_target_specific_var2.mk b/testcase/empty_target_specific_var2.mk new file mode 100644 index 0000000..6defb52 --- /dev/null +++ b/testcase/empty_target_specific_var2.mk @@ -0,0 +1,11 @@ +# TODO(go): https://github.com/google/kati/issues/83 + +define var +VAR:=1 +endef + +$(call var) + +eq_one:==1 +$(eq_one): + echo PASS |