In a makefile, can I call a rule from another rule?
Similar to:
rule1: echo \"bye\" rule2: date rule3: @echo \"hello\"
A simple way to do it is:
ifeq (a, b) build_target:=one else build_target:=two endif mytarget: $(build_target)