summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-01-20 10:48:09 +0000
committerTails developers <amnesia@boum.org>2015-01-20 10:48:09 +0000
commit76ce9a09199db95738d65925bdfa93111787b78c (patch)
tree0c7e704126aa75bd35f96423d95bb0cb164515b3
parent82600d939b5adbad0f4a29cf3df32bd63f80c712 (diff)
Move the build command to a Makefile variable.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dfc6b17..bf7e8c9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,14 @@
DOCKER_IMAGE_NAME := "tails_builder"
DOCKER_MOUNT := "$(shell pwd):/root/tails"
DOCKER_RUN := docker run --rm --privileged -v $(DOCKER_MOUNT) -t $(DOCKER_IMAGE_NAME) -e TAILS_BUILD_OPTIONS noproxy
+BUILD_COMMAND := lb clean --all && lb config --cache false && lb build
default: all
all: env image
image:
- $(DOCKER_RUN) "lb clean --all && lb config --cache false && lb build"
+ $(DOCKER_RUN) $(BUILD_COMMAND)
env:
docker build -t "$(DOCKER_IMAGE_NAME)" .