I have such code snippet:
.PHONY: program1 program2
a=A
b=B
c=C
program1:
@python example.py a=$(a) b=$(b)
program2:
program1 c=$(c) d=d
Due to the DRY principle, I don't want to replicate code and composed program2
in a way calling program1
.
But I understand that program1
is not in a path.
How can I correctly define program2
target?