summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4d9a0ff30589b3c3667415955cdec36596f562dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
#DOCKER_IMAGE_NAME := "tails$(if $(CURRENT_BRANCH),-$(CURRENT_BRANCH))"
DOCKER_IMAGE_NAME := "tails_builder"
DOCKER_MOUNT := "$(shell pwd):/root/tails"
DOCKER_RUN := docker run --rm --privileged -v $(DOCKER_MOUNT) -t $(DOCKER_IMAGE_NAME)
BUILD_COMMAND := apt-get update && apt-get dist-upgrade && lb clean --all && lb config --cache false && lb build

default: all

all: env image

image:
	$(DOCKER_RUN) $(BUILD_COMMAND)

env:
	docker build -t "$(DOCKER_IMAGE_NAME)" .