I wanted to write a minimal Makefile with two targets:

target1 target2:
    echo $@

clean:
    rm $(.DEFAULT_GOAL)

I noticed that .DEFAULT_GOAL [1] supports only one target name, so I have to define a separate target with target{1,2} as prerequisites.

Why does .DEFAULT_GOAL support only one target?

Gökçe

https://www.gnu.org/software/make/manual/make.html#index-_002eDEFAULT_005fGOAL-_0028define-default-goal_0029



_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to