1# TODO(go): not implemented 2 3 4A := test 5$(KATI_deprecated_var A B C D) 6 7$(info Writing to an undefined deprecated variable) 8B := test 9ifndef KATI 10$(info Makefile:8: B has been deprecated.) 11endif 12 13$(info Reading from deprecated variables - set before/after/never the deprecation func) 14$(info Writing to an undefined deprecated variable) 15D := $(A)$(B)$(C) 16ifndef KATI 17$(info Makefile:15: A has been deprecated.) 18$(info Makefile:15: B has been deprecated.) 19$(info Makefile:15: C has been deprecated.) 20$(info Makefile:15: D has been deprecated.) 21endif 22 23$(info Writing to a reset deprecated variable) 24D += test 25ifndef KATI 26$(info Makefile:24: D has been deprecated.) 27endif 28 29$(info Using a custom message) 30$(KATI_deprecated_var E,Use X instead) 31E = $(C) 32ifndef KATI 33$(info Makefile:31: E has been deprecated. Use X instead.) 34endif 35 36$(info Expanding a recursive variable with an embedded deprecated variable) 37$(E) 38ifndef KATI 39$(info Makefile:37: E has been deprecated. Use X instead.) 40$(info Makefile:37: C has been deprecated.) 41endif 42 43$(info All of the previous variable references have been basic SymRefs, now check VarRefs) 44F = E 45G := $($(F)) 46ifndef KATI 47$(info Makefile:45: E has been deprecated. Use X instead.) 48$(info Makefile:45: C has been deprecated.) 49endif 50 51$(info And check VarSubst) 52G := $(C:%.o=%.c) 53ifndef KATI 54$(info Makefile:52: C has been deprecated.) 55endif 56 57$(info Deprecated variable used in a rule-specific variable) 58test: A := $(E) 59ifndef KATI 60$(info Makefile:58: E has been deprecated. Use X instead.) 61$(info Makefile:58: C has been deprecated.) 62# A hides the global A variable, so is not considered deprecated. 63endif 64 65$(info Deprecated variable used as a macro) 66A := $(call B) 67ifndef KATI 68$(info Makefile:66: B has been deprecated.) 69$(info Makefile:66: A has been deprecated.) 70endif 71 72$(info Deprecated variable used in an ifdef) 73ifdef C 74endif 75ifndef KATI 76$(info Makefile:73: C has been deprecated.) 77endif 78 79$(info Deprecated variable used in a rule) 80test: 81 echo $(C)Done 82ifndef KATI 83$(info Makefile:81: C has been deprecated.) 84endif 85