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
On Mon, 2017-12-18 at 17:10 +0100, Gökçe Aydos wrote:
> 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 w