diff options
Diffstat (limited to 'rules/coreutils.make')
-rw-r--r-- | rules/coreutils.make | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/rules/coreutils.make b/rules/coreutils.make index fa2306344..2099ac725 100644 --- a/rules/coreutils.make +++ b/rules/coreutils.make @@ -1,17 +1,17 @@ # -*-makefile-*- -# $Id: coreutils.make,v 1.1 2003/08/06 21:23:03 robert Exp $ +# $Id: coreutils.make,v 1.2 2003/10/23 15:01:19 mkl Exp $ # -# (c) 2003 by Pengutronix e.K., Hildesheim, Germany +# Copyright (C) 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. # -# For further information about the PTXDIST project and license conditions +# For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # -ifeq (y, $(PTXCONF_COREUTILS)) +ifdef PTXCONF_COREUTILS PACKAGES += coreutils endif @@ -22,7 +22,6 @@ COREUTILS = coreutils-5.0 COREUTILS_URL = http://ftp.gnu.org/pub/gnu/coreutils/$(COREUTILS).tar.bz2 COREUTILS_SOURCE = $(SRCDIR)/$(COREUTILS).tar.bz2 COREUTILS_DIR = $(BUILDDIR)/$(COREUTILS) -COREUTILS_EXTRACT = bzcat # ---------------------------------------------------------------------------- # Get @@ -31,12 +30,12 @@ COREUTILS_EXTRACT = bzcat coreutils_get: $(STATEDIR)/coreutils.get $(STATEDIR)/coreutils.get: $(COREUTILS_SOURCE) - @$(call targetinfo, coreutils.get) + @$(call targetinfo, $@) touch $@ $(COREUTILS_SOURCE): - @$(call targetinfo, $(COREUTILS_SOURCE)) - wget -P $(SRCDIR) $(PASSIVEFTP) $(COREUTILS_URL) + @$(call targetinfo, $@) + @$(call get, $(COREUTILS_URL)) # ---------------------------------------------------------------------------- # Extract @@ -45,9 +44,9 @@ $(COREUTILS_SOURCE): coreutils_extract: $(STATEDIR)/coreutils.extract $(STATEDIR)/coreutils.extract: $(STATEDIR)/coreutils.get - @$(call targetinfo, coreutils.extract) + @$(call targetinfo, $@) @$(call clean, $(COREUTILS_DIR)) - $(COREUTILS_EXTRACT) $(COREUTILS_SOURCE) | $(TAR) -C $(BUILDDIR) -xf - + @$(call extract, $(COREUTILS_SOURCE)) touch $@ # ---------------------------------------------------------------------------- @@ -61,9 +60,9 @@ COREUTILS_AUTOCONF += --host=$(PTXCONF_GNU_TARGET) COREUTILS_AUTOCONF += --target=$(PTXCONF_GNU_TARGET) COREUTILS_PATH = PATH=$(CROSS_PATH) -COREUTILS_ENV += $(CROSS_ENV) +COREUTILS_ENV = $(CROSS_ENV) -#ifeq (y, $(PTXCONF_COREUTILS_SHLIKE)) +#ifdef PTXCONF_COREUTILS_SHLIKE #COREUTILS_AUTOCONF += --enable-shell=sh #else #COREUTILS_AUTOCONF += --enable-shell=ksh @@ -72,11 +71,12 @@ COREUTILS_ENV += $(CROSS_ENV) # # dependencies # -coreutils_prepare_deps = $(STATEDIR)/coreutils.extract -coreutils_prepare_deps += $(STATEDIR)/virtual-xchain.install +coreutils_prepare_deps = \ + $(STATEDIR)/virtual-xchain.install \ + $(STATEDIR)/coreutils.extract \ $(STATEDIR)/coreutils.prepare: $(coreutils_prepare_deps) - @$(call targetinfo, coreutils.prepare) + @$(call targetinfo, $@) mkdir -p $(BUILDDIR)/$(COREUTILS) cd $(COREUTILS_DIR) && \ $(COREUTILS_PATH) $(COREUTILS_ENV) \ @@ -92,11 +92,11 @@ coreutils_compile_deps = $(STATEDIR)/coreutils.prepare coreutils_compile: $(STATEDIR)/coreutils.compile $(STATEDIR)/coreutils.compile: $(STATEDIR)/coreutils.prepare - @$(call targetinfo, coreutils.compile) + @$(call targetinfo, $@) $(COREUTILS_PATH) make -C $(COREUTILS_DIR)/lib libfetish.a -#ifeq (y, $(PTXCONF_COREUTILS_SEQ)) +ifdef PTXCONF_COREUTILS_SEQ $(COREUTILS_PATH) make -C $(COREUTILS_DIR)/src seq -#endif +endif touch $@ # ---------------------------------------------------------------------------- @@ -105,8 +105,8 @@ $(STATEDIR)/coreutils.compile: $(STATEDIR)/coreutils.prepare coreutils_install: $(STATEDIR)/coreutils.install -$(STATEDIR)/coreutils.install: $(STATEDIR)/coreutils.compile - @$(call targetinfo, coreutils.install) +$(STATEDIR)/coreutils.install: + @$(call targetinfo, $@) touch $@ # ---------------------------------------------------------------------------- @@ -115,11 +115,13 @@ $(STATEDIR)/coreutils.install: $(STATEDIR)/coreutils.compile coreutils_targetinstall: $(STATEDIR)/coreutils.targetinstall -$(STATEDIR)/coreutils.targetinstall: $(STATEDIR)/coreutils.install - @$(call targetinfo, coreutils.targetinstall) - install -d $(ROOTDIR)/bin - install $(COREUTILS_DIR)/src/seq $(ROOTDIR)/bin - $(CROSSSTRIP) -R .notes -R .comment $(ROOTDIR)/bin/seq +$(STATEDIR)/coreutils.targetinstall: $(STATEDIR)/coreutils.compile + @$(call targetinfo, $@) + install -d $(ROOTDIR)/usr/bin +ifdef PTXCONF_COREUTILS_SEQ + install $(COREUTILS_DIR)/src/seq $(ROOTDIR)/usr/bin + $(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/usr/bin/seq +endif touch $@ # ---------------------------------------------------------------------------- |