forked from michaeldye/ubuntu-classic-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (23 loc) · 686 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
SHELL = /bin/bash -e
ARCH = $(shell ./tools/arch-tag)
COMPILE_CLEAN ?= clean
WORK_DIR ?= /mnt/extra/tmp/horizon-ubuntu-classic-image
IMAGE_OUTPUT_DIR ?= /mnt/extra
all: sd-image
clean: clean-pi2 clean-pi3
clean-%:
-rm -rf $(IMAGE_OUTPUT_DIR)/horizon-$*-*
-rm -rf $(WORK_DIR)/*
deep-clean:
tools/deep-clean CLEAN
repo-fork-sync:
tools/repo-fork-sync
%-sd-image:
mkdir -p $(WORK_DIR)
bash -x sd-image/package-sd-image $* $(WORK_DIR) $(IMAGE_OUTPUT_DIR)
push-%-sd-image:
cd $(IMAGE_OUTPUT_DIR); \
export IMG=$$(ls ./horizon-$*-*.img); \
zip -8 $$IMG.zip $$IMG; \
swift upload --verbose colonus $$IMG.zip
.PHONY: clean deep-clean repo-fork-sync sd-image push-sd-image