bug-make
[Top][All Lists]
Advanced

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

Incompatibility in make versions - directory/ dependency no longer match


From: Gur Stavi
Subject: Incompatibility in make versions - directory/ dependency no longer match directory goal
Date: Wed, 15 Feb 2017 15:14:18 +0200

Consider the makfile below.

OUT_DIR = my_dir
OUT_FILE = $(OUT_DIR)/hello.txt

$(OUT_FILE): | $(dir $(OUT_FILE))
echo Hello World > $@

my_dir:
mkdir $@

Running with make v3.81 results in:
mkdir my_dir
echo Hello World > my_dir/hello.txt

Running with Make v4.1 results in:
make: *** No rule to make target 'my_dir/', needed by 'my_dir/hello.txt'.  Stop.

Is this intentional?


reply via email to

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