make: add gettext dependency to make rule instead of TARGETS
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 5 Nov 2008 08:43:04 +0000 (08:43 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 5 Nov 2008 08:43:04 +0000 (08:43 -0000)
This patch adds gettext dependency to make: rule instead of the TARGETS
variable if locale is selected. Just to conform with common syntax.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
package/make/make.mk

index 4cc5e1597ae32c49d143881436574752f28696a4..95bbfe0e04353eaa4e77d7d9e251eacda6ef1f15 100644 (file)
@@ -56,7 +56,7 @@ $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY): $(GNUMAKE_DIR)/$(GNUMAKE_BINARY)
        rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
                $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
 
-make: uclibc $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY)
+make: uclibc $(if $(BR2_PACKAGE_GETTEXT),gettext) $(TARGET_DIR)/$(GNUMAKE_TARGET_BINARY)
 
 make-clean:
        $(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUMAKE_DIR) uninstall
@@ -71,5 +71,5 @@ make-dirclean:
 #
 #############################################################
 ifeq ($(strip $(BR2_PACKAGE_MAKE)),y)
-TARGETS+=$(if $(BR2_PACKAGE_GETTEXT),gettext) make
+TARGETS+=make
 endif