Makefile: directories are not PHONY targets
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Mar 2015 17:33:27 +0000 (19:33 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 6 Apr 2015 09:08:02 +0000 (11:08 +0200)
The global .PHONY specification in the main Makefile is describing a
number of directory targets as being PHONY, which doesn't make much
sense. PHONY targets are targets that do not exist on the filesystem,
and which make should always consider as not being up-to-date, so that
the commands associated to these targets are always executed by make
when the command is invoked, even if a file with the same name exists
on the filesystem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Makefile

index 65b60c20947c00b736b2891c4384b4f3b51bffb7..bcb1f9630265f631f8c8de17c0e0699ed240a9e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -434,9 +434,7 @@ world: target-post-image
        legal-info legal-info-prepare legal-info-clean printvars help \
        list-defconfigs target-finalize target-post-image \
        $(TARGETS) $(TARGETS_ROOTFS) \
-       $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
-       $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
-       $(HOST_DIR) $(BINARIES_DIR)
+       $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO)
 
 ################################################################################
 #