From: Junio C Hamano Date: Tue, 30 Mar 2021 18:36:48 GMT Subject: Re: [PATCH 3/6] Makefile: refactor out "ln || ln -s || cp" pattern Message-ID: In-Reply-To: Jeff King writes: >> Nice. These explicit command-line options to the helper may be >> harder to initially write and maintain than just exporting the >> relevant $(MAKE) macros and using it from the helper, but once >> it works correctly, it is much easier to see what is going on. > > Another option is to make "ln-or-cp" itself a target that "make" knows > how to build, and bake the values into its "built" version. Aha. That is even nicer ;-).