build: provide way to bootstrap with python gnulib-tool

* cfg.mk: Add a new "world" default target so that one
can bootstrap (using the python implementation), configure,
and make, by using `make -f cfg.mk`.
* gnulib: Update to latest primarily to test the
bootstrap python implementation which is now in beta test.
* README-hacking: Document the `make -f cfg.mk` shortcut.
This commit is contained in:
Pádraig Brady 2024-04-20 10:40:06 +01:00
parent fb543b6b82
commit 555f9061ee
3 changed files with 14 additions and 8 deletions

View File

@ -45,16 +45,17 @@ time and file system space requirements:
$ export GNULIB_SRCDIR=/path/to/gnulib
The next step is to get and check other files needed to build,
which are extracted from other source packages:
The next steps are to get and check other files needed to build,
and complete the build:
$ make -f cfg.mk
For reference the above command runs the following steps,
which can be done individually if required to give more control:
$ ./bootstrap
And there you are! Just
$ ./configure --quiet #[--disable-gcc-warnings] [*]
$ make
$ make check
$ make #[check]
At this point, there should be no difference between your local copy,
and the Git master copy:

5
cfg.mk
View File

@ -57,6 +57,11 @@ _makefile_at_at_check_exceptions = \
# Our help-version script is in a slightly different location.
_hv_file ?= $(srcdir)/tests/misc/help-version
world:
GNULIB_TOOL_IMPL=py ./bootstrap && \
./configure --quiet && \
$(MAKE) $(AM_MAKEFLAGS) -j $$(nproc 2>/dev/null || echo 1)
# Ensure that the list of O_ symbols used to compute O_FULLBLOCK is complete.
dd = $(srcdir)/src/dd.c
sc_dd_O_FLAGS:

2
gnulib

@ -1 +1 @@
Subproject commit 83a61464bd251ccd031ca3188d8be151f6591470
Subproject commit 237cbf1c7639ebf06117b21381e463dedbb474b8