cleanup sudo makefile

This commit is contained in:
John Voltz 2008-03-06 18:26:10 +00:00
parent 23092c4a4a
commit 9cbf08c55a

View File

@ -19,7 +19,7 @@ $(SUDO_DIR)/.unpacked: $(DL_DIR)/$(SUDO_SOURCE)
$(SUDO_UNZIP) $(DL_DIR)/$(SUDO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(SUDO_DIR) package/sudo sudo\*.patch
$(CONFIG_UPDATE) $(SUDO_DIR)
touch $(SUDO_DIR)/.unpacked
touch $@
$(SUDO_DIR)/.configured: $(SUDO_DIR)/.unpacked $(SUDO_CONFIG_FILE)
(cd $(SUDO_DIR); rm -rf config.cache; \
@ -50,11 +50,11 @@ $(SUDO_DIR)/.configured: $(SUDO_DIR)/.unpacked $(SUDO_CONFIG_FILE)
$(SUDO_EXTRA_CONFIG) \
)
touch $(SUDO_DIR)/.configured
touch $@
$(SUDO_DIR)/sudo: $(SUDO_DIR)/.configured
$(MAKE) -C $(SUDO_DIR)
touch -c $(SUDO_DIR)/sudo
touch -c $@
$(TARGET_DIR)/usr/bin/sudo: $(SUDO_DIR)/sudo
$(INSTALL) -m 4555 -D $(SUDO_DIR)/sudo $(TARGET_DIR)/usr/bin/sudo