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:
parent
b85d82c219
commit
94d2ca36aa
@ -17,7 +17,7 @@ endif
|
|||||||
all: $(GLOBAL_DEBUG) prep copy-subdirs copy-tree run-scripts pack-image \
|
all: $(GLOBAL_DEBUG) prep copy-subdirs copy-tree run-scripts pack-image \
|
||||||
postprocess $(GLOBAL_CLEAN_WORKDIR)
|
postprocess $(GLOBAL_CLEAN_WORKDIR)
|
||||||
|
|
||||||
prep: $(GLOBAL_DEBUG) dot-disk $(METADATA) $(IMAGEDIR)
|
prep: $(GLOBAL_DEBUG) dot-disk $(METADATA) imagedir
|
||||||
|
|
||||||
metadata: dot-base
|
metadata: dot-base
|
||||||
@mkdir -p files/Metadata
|
@mkdir -p files/Metadata
|
||||||
|
@ -9,3 +9,5 @@ IMAGE_PACKAGES = $(call list,$(BASE_LISTS)) \
|
|||||||
|
|
||||||
all: $(GLOBAL_DEBUG) build-image copy-tree run-image-scripts pack-image \
|
all: $(GLOBAL_DEBUG) build-image copy-tree run-image-scripts pack-image \
|
||||||
postprocess $(GLOBAL_CLEAN_WORKDIR)
|
postprocess $(GLOBAL_CLEAN_WORKDIR)
|
||||||
|
|
||||||
|
prep: imagedir
|
||||||
|
@ -40,9 +40,11 @@ include $(MKIMAGE_PREFIX)/targets.mk
|
|||||||
|
|
||||||
# specified only for the final image (target-specific)
|
# specified only for the final image (target-specific)
|
||||||
pack-image: OUTDIR = $(IMAGEDIR)
|
pack-image: OUTDIR = $(IMAGEDIR)
|
||||||
pack-image: $(IMAGEDIR)
|
pack-image: imagedir
|
||||||
|
|
||||||
$(IMAGEDIR):
|
.PHONY: imagedir postprocess debug
|
||||||
|
|
||||||
|
imagedir:
|
||||||
@mkdir -p "$(IMAGEDIR)"
|
@mkdir -p "$(IMAGEDIR)"
|
||||||
|
|
||||||
postprocess:
|
postprocess:
|
||||||
|
Loading…
Reference in New Issue
Block a user