From 84ba4ef5def9316d992b97b6714f0a92da89e323 Mon Sep 17 00:00:00 2001 From: Ralf Jung <jung@mpi-sws.org> Date: Tue, 19 Sep 2017 15:07:49 +0200 Subject: [PATCH] Makefile tweaks --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97b9487b5..a8c1e0574 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,9 @@ build-dep: phony @# To achieve this, we create a fake opam package that has our build-dependencies as @# dependencies, but does not actually install anything. mkdir -p build-dep + # Create the build-dep package, add the pin and (re)install it. @sed <opam 's/^\(build\|install\|remove\):.*/\1: []/; s/^name: *"\(.*\)" */name: "\1-builddep"/' > build-dep/opam @fgrep builddep build-dep/opam >/dev/null || (echo "sed failed to fix the package name" && exit 1) # sanity check - # Compute the package name, add the pin and (re)install it. @# Reinstallation is needed in case the pin already exists, but the builddep package changed. @BUILD_DEP_PACKAGE="$$(egrep "^name:" build-dep/opam | sed 's/^name: *"\(.*\)" */\1/')"; \ opam pin add "$$BUILD_DEP_PACKAGE" "$$(pwd)/build-dep" -k path $(OPAMFLAGS) && \ -- GitLab