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:
Michael Shigorin 2011-09-01 18:34:56 +03:00
parent b56df31624
commit 7f555ed7a1

View File

@ -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" && \