Avoid repeated rebuilds of 'sysvinit'
This commit is contained in:
parent
b2cc2970b9
commit
3a18b7b9f7
@ -9,13 +9,11 @@ SYSVINIT_SITE:=ftp://ftp.cistron.nl/pub/people/miquels/software
|
||||
SYSVINIT_DIR:=$(BUILD_DIR)/sysvinit-$(SYSVINIT_VERSION)
|
||||
SYSVINIT_CAT:=$(ZCAT)
|
||||
SYSVINIT_BINARY:=src/init
|
||||
SYSVINIT_TARGET_BINARY:=bin/init
|
||||
SYSVINIT_TARGET_BINARY:=sbin/init
|
||||
|
||||
$(DL_DIR)/$(SYSVINIT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(SYSVINIT_SITE)/$(SYSVINIT_SOURCE)
|
||||
|
||||
sysvinit-source: $(DL_DIR)/$(SYSVINIT_SOURCE)
|
||||
|
||||
sysvinit-unpacked: $(SYSVINIT_DIR)/.unpacked
|
||||
$(SYSVINIT_DIR)/.unpacked: $(DL_DIR)/$(SYSVINIT_SOURCE)
|
||||
$(SYSVINIT_CAT) $(DL_DIR)/$(SYSVINIT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
@ -32,6 +30,8 @@ $(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY): $(SYSVINIT_DIR)/$(SYSVINIT_BINARY)
|
||||
|
||||
sysvinit: uclibc ncurses $(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY)
|
||||
|
||||
sysvinit-source: $(DL_DIR)/$(SYSVINIT_SOURCE)
|
||||
|
||||
sysvinit-clean:
|
||||
for x in halt init shutdown ; do \
|
||||
rm -f $(TARGET_DIR)/sbin/$$x || exit 1 ; \
|
||||
|
Loading…
Reference in New Issue
Block a user