linux-rpm.mk: Make make aware of the downloading as seperate step

This commit is contained in:
Jan Lindemann 2004-02-23 12:13:56 +00:00 committed by Jan Lindemann
commit 09b7e0610c

View file

@ -35,6 +35,7 @@ BASE = $(KERNEL_BASE)-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
BASE_RUN = $(KERNEL_BASE)-run-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
BASE_DEVEL = $(KERNEL_BASE)-devel-$(KERNEL_VERSION)-$(KERNEL_RELEASE)
KERNEL_TGZ = $(notdir $(KERNEL_PKG))
F_SPEC = $(BASE).spec
F_TGZ = $(BASE).tar.gz
F_SPM = $(BASE).src.rpm
@ -64,9 +65,11 @@ export KERNEL_INSTALL_PREFIX
all: rpm
# file rules
$(KERNEL_PKG):
ftp -a ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/$(notdir $(KERNEL_PKG))
cp $(notdir $(KERNEL_PKG)) $@
$(KERNEL_TGZ):
ftp -a ftp.kernel.org:/pub/linux/kernel/v$(basename $(KERNEL_VERSION))/$(KERNEL_TGZ)
$(KERNEL_PKG): $(KERNEL_TGZ)
install -m 664 $< $@
config-$(KERNEL_VERSION):
cp $(shell ls config-$(basename $(KERNEL_VERSION)).* | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]\)$$/\1.\2.0\3/' | sort -g | sed 's/\.0/./; $$ !d') $@