|
| From: | Bruno Haible |
| Subject: | Re: "make -jN" requires mechanical changes to a Makefile |
| Date: | Sun, 12 May 2019 18:07:17 +0200 |
| User-agent: | KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
I wrote:
> The workaround is to introduce an intermediate target:
>
> ===================================================
> all : copy1 copy2 copy3 copy4
>
> copy1 copy2 copy3 copy4: install-copies
> .PHONY: install-copies
> install-copies: Makefile
> install -c -m 644 Makefile copy1
> install -c -m 644 Makefile copy2
> install -c -m 644 Makefile copy3
> install -c -m 644 Makefile copy4
> ===================================================
This workaround doesn't actually work (in the actual case of GNU gettext):
it fails the "make distcheck" verification.
The real workaround goes like this:
===================================================
all : copy1 copy2 copy3 copy4
copy1: Makefile
install -c -m 644 Makefile copy1
install -c -m 644 Makefile copy2
install -c -m 644 Makefile copy3
install -c -m 644 Makefile copy4
copy2 copy3 copy4: copy1
===================================================
Bruno
| [Prev in Thread] | Current Thread | [Next in Thread] |