cleanup which makefile

This commit is contained in:
John Voltz 2008-03-06 18:29:21 +00:00
parent 8a44ae675b
commit 7514ac7a62

View File

@ -3,7 +3,7 @@
# which # which
# #
############################################################# #############################################################
WHICH_VERSION:=2.16 WHICH_VERSION:=2.19
WHICH_SOURCE:=which-$(WHICH_VERSION).tar.gz WHICH_SOURCE:=which-$(WHICH_VERSION).tar.gz
WHICH_SITE:=http://www.xs4all.nl/~carlo17/which/ WHICH_SITE:=http://www.xs4all.nl/~carlo17/which/
WHICH_DIR:=$(BUILD_DIR)/which-$(WHICH_VERSION) WHICH_DIR:=$(BUILD_DIR)/which-$(WHICH_VERSION)
@ -19,7 +19,7 @@ which-source: $(DL_DIR)/$(WHICH_SOURCE)
$(WHICH_DIR)/.unpacked: $(DL_DIR)/$(WHICH_SOURCE) $(WHICH_DIR)/.unpacked: $(DL_DIR)/$(WHICH_SOURCE)
$(WHICH_CAT) $(DL_DIR)/$(WHICH_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(WHICH_CAT) $(DL_DIR)/$(WHICH_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
$(CONFIG_UPDATE) $(WHICH_DIR) $(CONFIG_UPDATE) $(WHICH_DIR)
touch $(WHICH_DIR)/.unpacked touch $@
$(WHICH_DIR)/.configured: $(WHICH_DIR)/.unpacked $(WHICH_DIR)/.configured: $(WHICH_DIR)/.unpacked
(cd $(WHICH_DIR); rm -rf config.cache; \ (cd $(WHICH_DIR); rm -rf config.cache; \
@ -31,7 +31,7 @@ $(WHICH_DIR)/.configured: $(WHICH_DIR)/.unpacked
--build=$(GNU_HOST_NAME) \ --build=$(GNU_HOST_NAME) \
--prefix=/ \ --prefix=/ \
) )
touch $(WHICH_DIR)/.configured touch $@
$(WHICH_DIR)/$(WHICH_BINARY): $(WHICH_DIR)/.configured $(WHICH_DIR)/$(WHICH_BINARY): $(WHICH_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(WHICH_DIR) $(MAKE) CC=$(TARGET_CC) -C $(WHICH_DIR)