help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.DEFAULT_GOAL with two targets


From: Gökçe Aydos
Subject: .DEFAULT_GOAL with two targets
Date: Mon, 18 Dec 2017 17:10:49 +0100
User-agent: Horde Application Framework 5

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]