Improve the process for GNU tools

Split the process to fetch GNU tools (until now embedded
within tools/Makefile.gnuhost) into a new Makefile.fetchgnu,
MINIX-specific hence relocated, which is to be also used
to fetch sources even when not building the tools.
Use it for binutils too.
Improve documentation.

Also do not run configure on each run when MKUPDATE=yes
The .WAIT serialization instruction between fetching and other
configure sources was raising a new run of configure at each
compilation. Avoid it by using two rules.

Change-Id: Ie24950ccbb5c5067f3c1ea57b7bd8294e4c9445e
This commit is contained in:
Antoine Leca
2016-08-29 13:48:31 +02:00
committed by Lionel Sambuc
parent 76c7f3dac9
commit a150b26ee8
9 changed files with 126 additions and 49 deletions

18
gnu/dist/Makefile vendored
View File

@@ -1,18 +0,0 @@
# LSC FIXME: Hackish way to trigger the fetch phase from here
# in the same way as from tools.
.include <bsd.own.mk>
MODULE= texinfo
.include "${.CURDIR}/../../tools/Makefile.gnuhost"
# Force the mapping to standard targets even when not building tools
# We considere work to be done as soon as the fetch step is done,
# as everything else has to be triggered from /tools or ../usr.bin
.if ${USETOOLS} != "yes"
realall realinstall: ${GNUHOSTDIST:H}/.gitignore
.endif