-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 752 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 752 Bytes
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
#!/usr/bin/make -f
TEMP_DIR := /tmp
debian-changelog:
ifndef PACKAGE_VERSION
$(error The PACKAGE_VERSION environment variable is not defined. Please define it before continuing.)
endif
@bash -x ./scripts/gen-debian-changelog.sh "$(PACKAGE_VERSION)" "$(CURDIR)/pkg"
docker-build:
@docker build -t das-toolbox-package:latest .
build: docker-build
@docker run --rm \
--user=$(id -u):$(id -g) \
-e USER=$(id -un) \
-v /etc/passwd:/etc/passwd:ro \
-v "$(CURDIR)/dist:/app/das/dist" \
-v $(TEMP_DIR):$(TEMP_DIR) \
-v /var/run/docker.sock:/var/run/docker.sock \
-e PACKAGE_VERSION=$(PACKAGE_VERSION) \
das-toolbox-package:latest
build-local: debian-changelog
export TMPDIR=$(TEMP_DIR) && cd pkg && dpkg-buildpackage -us -uc -b -d