I have the following macros in my make file:
pdf:
// do something
clean:
// just another fancy thing
No I want to declare a macro all: which include (or call) the macros above. The following thing doesn’t work:
all:
pdf:
clean:
I don’t want to repeat the code from pdf: and clean: in order not to rebel against DRY principle.
Thanks for your help.
Those are not macros, they are targets.
Makefiles take the syntax of [target]: [dependent target 1] [dependent target 2]
Try: