forked from GoCarrot/debian-cloud-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 826 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
# Modified by Teak.io, Inc. on 2021-04-09
# path to the config space shoud be absolute, see fai.conf(5)
DESTDIR = .
help:
@echo "To run this makefile, run:"
@echo " make image_<DIST>_<CLOUD>_<ARCH>"
@echo " WHERE <DIST> is buster, bullseye, bookworm, sid"
@echo " And <CLOUD> is azure, ec2, gce, generic, genericcloud, nocloud, vagrant"
@echo " And <ARCH> is amd64, arm64, ppc64el"
@echo "Set DESTDIR= to write images to given directory."
image_%:
umask 022; \
./bin/debian-cloud-images build \
$(subst _, ,$*) \
--build-id manual \
--version $(shell date '+%Y%m%d%H%M') \
--localdebs \
--output $(DESTDIR) \
--override-name $@ \
--build-type official
vmware_%: image_%
umask 022; \
qemu-img convert -f raw -O vmdk image_$*.raw $@.vmdk
clean:
rm -rf image_*.*
rm -rf vmware_*.*