ensure that image output directory does exist
It turned out that ~/out masked the broken execution path when it's absent (which was handled incompletely). Sigh.
This commit is contained in:
parent
b56df31624
commit
7f555ed7a1
1
Makefile
1
Makefile
@ -34,6 +34,7 @@ $(IMAGES): %.iso: | profile/init distro/% boot/isolinux profile/populate iso
|
||||
@# TODO: run automated tests (e.g. iso size)
|
||||
@OUTNAME="$(@:.iso=)-$(DATE)-$(ARCH).iso"; \
|
||||
OUTPATH="$(IMAGEDIR)/$$OUTNAME"; \
|
||||
mkdir -p "$(IMAGEDIR)" && \
|
||||
test -s "$(IMAGEDIR)/$(IMAGENAME)" && \
|
||||
mv "$(IMAGEDIR)/$(IMAGENAME)" "$$OUTPATH" && \
|
||||
echo "** image: $$OUTPATH" && \
|
||||
|
Loading…
Reference in New Issue
Block a user