-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (38 loc) · 1.17 KB
/
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
48
49
50
51
52
53
54
IMAGE_NAME ?= lool
IMAGE_TAG ?= master
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
all: poco libreoffice lool
poco: .dapper
cd dapper/poco && $(CURDIR)/.dapper build 2>&1
lool: .dapper
cd dapper/online && $(CURDIR)/.dapper -m bind -C .. -f online/Dockerfile.dapper build 2>&1
libreoffice: .dapper
cd dapper/core && $(CURDIR)/.dapper -m bind build 2>&1
release: | dapper/online/build
docker build -t ${IMAGE_NAME}:${IMAGE_TAG} dapper/
clean-libreoffice: .dapper
cd dapper/core && $(CURDIR)/.dapper -m bind clean 2>&1
clean-lool: .dapper
cd dapper/online && $(CURDIR)/.dapper -m bind clean 2>&1
clean-poco:
@rm -rf dapper/poco/build
clean:
@./scripts/clean
archive-libreoffice:
@tar -C dapper/core -cf lo.tar build
brotli --force --best ./lo.tar
restore-libreoffice:
brotli -d ./lo.tar.br
@tar -C dapper/core -xf lo.tar
change-version:
@./scripts/change-version
get-source:
@./scripts/get-source
update:
@./scripts/update
.PHONY: clean-libreoffice clean-lool clean-poco archive-libreoffice clean