diff options
| author | Sergey Trofimov <sarg@sarg.org.ru> | 2023-11-05 19:31:03 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-06-02 11:20:22 +0200 |
| commit | 7fef609df1a61898764623f5cd4d4a930e5f19ea (patch) | |
| tree | 4f035b809fca293d93f3910e65c04ae576a023b1 /build-aux | |
| parent | 70a14b27b5f0094400e696ef974a02912a5666b6 (diff) | |
build: Require scripts/guix in pre-inst-env.
* Makefile.am: Make scripts/guix depend on local guile.
* build-aux/pre-inst-env.in: Require scripts/guix.
Change-Id: Ib248da80a1e8215c4c5e6c485ade41a893ac0fd5
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'build-aux')
| -rw-r--r-- | build-aux/pre-inst-env.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/pre-inst-env.in b/build-aux/pre-inst-env.in index cd90a06cbc7..c18d3723354 100644 --- a/build-aux/pre-inst-env.in +++ b/build-aux/pre-inst-env.in | |||
| @@ -46,6 +46,12 @@ export PATH | |||
| 46 | GUIX="$abs_top_builddir/scripts/guix" | 46 | GUIX="$abs_top_builddir/scripts/guix" |
| 47 | export GUIX | 47 | export GUIX |
| 48 | 48 | ||
| 49 | # Sanity check. | ||
| 50 | if [ "$1" = "guix" ] && [ ! -f "$GUIX" ]; then | ||
| 51 | echo "$GUIX is not built. Please run 'make scripts/guix'." | ||
| 52 | exit 1 | ||
| 53 | fi | ||
| 54 | |||
| 49 | # Define $GUIX_UNINSTALLED to prevent `guix' from | 55 | # Define $GUIX_UNINSTALLED to prevent `guix' from |
| 50 | # prepending @guilemoduledir@ to the Guile load paths. | 56 | # prepending @guilemoduledir@ to the Guile load paths. |
| 51 | 57 | ||
