-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (33 loc) · 949 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: default
default: image
.DELETE_ON_ERROR:
SHELL = /bin/bash
$(shell mkdir -p .build)
######################################################################
# Image build targets.
build_scripts := \
config/nsswitch.conf \
scripts/apt-install.sh \
scripts/firefox \
scripts/setup-autofirma.sh
image := .build/image-id
deb := .build/AutoFirma_1_6_5.deb
$(image): Dockerfile $(build_scripts)
docker build --iidfile=$@ --tag=autofirma --file=$< .
$(deb): $(image)
docker run --rm --entrypoint=/bin/cat $$(< $<) /tmp/AutoFirma_1_6_5.deb > $@
.PHONY: image
image: $(image)
.PHONY: deb
deb: $(deb)
######################################################################
# Manual test targets.
.PHONY: test-setup
test-setup: $(image)
./firefox-autofirma setup ~/Desktop/cert.pfx
.PHONY: test-shell
test-shell: $(image)
./firefox-autofirma shell
.PHONY: test-run
test-run: $(image)
./firefox-autofirma run https://httpbin.org