image.in/Makefile: phonytize targets

It is a current convention to prefer clearly phony targets
(see the wiki page) so let's follow it here too.
This commit is contained in:
Michael Shigorin 2011-11-09 21:14:22 +02:00
parent b85d82c219
commit 94d2ca36aa
3 changed files with 7 additions and 3 deletions

View File

@ -17,7 +17,7 @@ endif
all: $(GLOBAL_DEBUG) prep copy-subdirs copy-tree run-scripts pack-image \
postprocess $(GLOBAL_CLEAN_WORKDIR)
prep: $(GLOBAL_DEBUG) dot-disk $(METADATA) $(IMAGEDIR)
prep: $(GLOBAL_DEBUG) dot-disk $(METADATA) imagedir
metadata: dot-base
@mkdir -p files/Metadata

View File

@ -9,3 +9,5 @@ IMAGE_PACKAGES = $(call list,$(BASE_LISTS)) \
all: $(GLOBAL_DEBUG) build-image copy-tree run-image-scripts pack-image \
postprocess $(GLOBAL_CLEAN_WORKDIR)
prep: imagedir

View File

@ -40,9 +40,11 @@ include $(MKIMAGE_PREFIX)/targets.mk
# specified only for the final image (target-specific)
pack-image: OUTDIR = $(IMAGEDIR)
pack-image: $(IMAGEDIR)
pack-image: imagedir
$(IMAGEDIR):
.PHONY: imagedir postprocess debug
imagedir:
@mkdir -p "$(IMAGEDIR)"
postprocess: