]> rtime.felk.cvut.cz Git - omk.git/blob - tests/Makefile.dollar-test
Added LD_RUN_PATH when linking shared libraries
[omk.git] / tests / Makefile.dollar-test
1 VAR = first
2
3 all: tgt1 tgt2
4
5 define asdf
6 A = hodnotaA-$(1)-$(VAR)-$$(VAR)
7 B := hodnotaB-$(1)-$(VAR)-$$(VAR)
8 C=A
9 $(1): D = hodnotaD-$(1)-$(VAR)-$$(VAR)
10 $(1): E := hodnotaE-$(1)-$(VAR)-$$(VAR)
11 $(1):
12         @echo "@" $$@
13         @echo "A" $(A) "A2" $$(A)
14         @echo "B" $(B) "B2" $$(B)
15         @echo "C" $$($$(C))
16         @echo "D" $(D) "D2" $$(D)
17         @echo "E" $(E) "E2" $$(E)
18         @echo "VAR" $(VAR) $$(VAR)
19 endef
20
21 VAR = second
22
23 A=noneA
24 B=noneB
25
26 $(eval $(call asdf,tgt1))
27
28 VAR = third
29
30 $(eval $(call asdf,tgt2))
31
32 VAR = fourth
33
34 # Local Variables:
35 # mode: makefile
36 # compile-command: "make -f Makefile.dollar-test"
37 # End: