Bladeren bron

build: Pass the right flags for "make distcheck".

* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): New variable.
* configure.ac: Define and substitute `NIX_PREFIX'.
gn-latest-20200428
Ludovic Courtès 8 jaren geleden
bovenliggende
commit
437e0729d8
2 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. +2
    -0
      Makefile.am
  2. +5
    -1
      configure.ac

+ 2
- 0
Makefile.am Bestand weergeven

@@ -95,3 +95,5 @@ $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
SUBDIRS = po

ACLOCAL_AMFLAGS = -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-nixpkgs=$(NIXPKGS) --with-nix-prefix="$(NIX_PREFIX)"

+ 5
- 1
configure.ac Bestand weergeven

@@ -27,7 +27,11 @@ AC_ARG_WITH([nix-prefix],
[AS_HELP_STRING([--with-nix-prefix=DIR], [search for Nix in DIR])],
[case "$withval" in
yes|no) ;;
*) PATH="$withval/bin:$PATH"; export PATH;;
*)
NIX_PREFIX="$withval"
PATH="$NIX_PREFIX/bin:$PATH"; export PATH
AC_SUBST([NIX_PREFIX])
;;
esac],
[])



Laden…
Annuleren
Opslaan