[Top][All Lists]

[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 $@

    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?


reply via email to

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