forked from bitnami/minideb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 695 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 695 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
30
31
32
33
34
35
36
37
BUILD_DIR := build
MKDIR_P = mkdir -p
RM = rm -rf
.PHONY: build clean clobber
all: build
clean:
${RM} ${CURDIR}/${BUILD_DIR}
clobber: clean
@${RM} .installed-requirements
.installed-qemu:
@echo "Installing QEMU and required packages..."
@./install-qemu.sh
@touch $@
.installed-requirements:
@echo "Installing required packages..."
@./pre-build.sh
@touch $@
build: .installed-requirements
@echo "Building all supported distros..."
@./buildall
%:
@echo "Building $@..."
@$(MAKE) .installed-requirements
@${MKDIR_P} ${CURDIR}/${BUILD_DIR}
./mkimage ${CURDIR}/${BUILD_DIR}/$@.tar $@
test-%:
@cat ${CURDIR}/${BUILD_DIR}/$*.tar | docker import - minideb:$*
@./test minideb:$*