Skip to content

Commit 7479e6d

Browse files
committed
Makefile: add scripts and dependencies of images
so the makefile can be used more easily when editing the scripts
1 parent 9708d22 commit 7479e6d

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ README.md: README.md.in build-x86-images.sh mklive.sh mkrootfs.sh mkplatformfs.s
4343
printf '```\n\n' >> README.md ; \
4444
done
4545

46+
build-x86-images.sh: mklive.sh
47+
4648
checksum: distdir-$(DATECODE)
4749
cd distdir-$(DATECODE)/ && sha256 * > sha256sum.txt
4850

@@ -57,7 +59,7 @@ live-iso-all: $(ALL_LIVE_ISO)
5759
live-iso-all-print:
5860
@echo $(ALL_LIVE_ISO) | sed "s: :\n:g"
5961

60-
void-live-%.iso:
62+
void-live-%.iso: build-x86-images.sh
6163
@[ -n "${CI}" ] && printf "::group::\x1b[32mBuilding $@...\x1b[0m\n" || true
6264
$(SUDO) ./build-x86-images.sh -r $(REPOSITORY) -t $*
6365
@[ -n "${CI}" ] && printf '::endgroup::\n' || true
@@ -67,7 +69,7 @@ rootfs-all: $(ALL_ROOTFS)
6769
rootfs-all-print:
6870
@echo $(ALL_ROOTFS) | sed "s: :\n:g"
6971

70-
void-%-ROOTFS-$(DATECODE).tar.xz:
72+
void-%-ROOTFS-$(DATECODE).tar.xz: mkrootfs.sh
7173
@[ -n "${CI}" ] && printf "::group::\x1b[32mBuilding $@...\x1b[0m\n" || true
7274
$(SUDO) ./mkrootfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) -o $@ $*
7375
@[ -n "${CI}" ] && printf '::endgroup::\n' || true
@@ -78,7 +80,7 @@ platformfs-all-print:
7880
@echo $(ALL_PLATFORMFS) | sed "s: :\n:g"
7981

8082
.SECONDEXPANSION:
81-
void-%-PLATFORMFS-$(DATECODE).tar.xz: void-$$(shell ./lib.sh platform2arch %)-ROOTFS-$(DATECODE).tar.xz
83+
void-%-PLATFORMFS-$(DATECODE).tar.xz: void-$$(shell ./lib.sh platform2arch %)-ROOTFS-$(DATECODE).tar.xz mkplatformfs.sh
8284
@[ -n "${CI}" ] && printf "::group::\x1b[32mBuilding $@...\x1b[0m\n" || true
8385
$(SUDO) ./mkplatformfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) -o $@ $* void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATECODE).tar.xz
8486
@[ -n "${CI}" ] && printf '::endgroup::\n' || true
@@ -95,14 +97,14 @@ images-all-cloud: $(ALL_CLOUD_IMAGES)
9597
images-all-print:
9698
@echo $(ALL_SBC_IMAGES) $(ALL_CLOUD_IMAGES) | sed "s: :\n:g"
9799

98-
void-%-$(DATECODE).img.xz: void-%-PLATFORMFS-$(DATECODE).tar.xz
100+
void-%-$(DATECODE).img.xz: void-%-PLATFORMFS-$(DATECODE).tar.xz mkimage.sh
99101
@[ -n "${CI}" ] && printf "::group::\x1b[32mBuilding $@...\x1b[0m\n" || true
100102
$(SUDO) ./mkimage.sh -x $(COMPRESSOR_THREADS) -o $(basename $@) void-$*-PLATFORMFS-$(DATECODE).tar.xz
101103
@[ -n "${CI}" ] && printf '::endgroup::\n' || true
102104

103105
# Some of the images MUST be compressed with gzip rather than xz, this
104106
# rule services those images.
105-
void-%-$(DATECODE).tar.gz: void-%-PLATFORMFS-$(DATECODE).tar.xz
107+
void-%-$(DATECODE).tar.gz: void-%-PLATFORMFS-$(DATECODE).tar.xz mkimage.sh
106108
@[ -n "${CI}" ] && printf "::group::\x1b[32mBuilding $@...\x1b[0m\n" || true
107109
$(SUDO) ./mkimage.sh -x $(COMPRESSOR_THREADS) void-$*-PLATFORMFS-$(DATECODE).tar.xz
108110
@[ -n "${CI}" ] && printf '::endgroup::\n' || true
@@ -112,7 +114,7 @@ pxe-all: $(ALL_PXE_ARCHS)
112114
pxe-all-print:
113115
@echo $(ALL_PXE_ARCHS) | sed "s: :\n:g"
114116

115-
void-%-NETBOOT-$(DATECODE).tar.gz: void-%-ROOTFS-$(DATECODE).tar.xz
117+
void-%-NETBOOT-$(DATECODE).tar.gz: void-%-ROOTFS-$(DATECODE).tar.xz mknet.sh
116118
@[ -n "${CI}" ] && printf "::group::\x1b[32mBuilding $@...\x1b[0m\n" || true
117119
$(SUDO) ./mknet.sh void-$*-ROOTFS-$(DATECODE).tar.xz
118120
@[ -n "${CI}" ] && printf '::endgroup::\n' || true

0 commit comments

Comments
 (0)