summaryrefslogtreecommitdiffstats
path: root/rules/wget.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-07-31 18:59:20 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-07-31 18:59:20 +0000
commitc582c96ead94e0f642c3a714b4f34d780018155d (patch)
treebc4e825cfe9eca0642d5199fbf5db3b23fbbb987 /rules/wget.make
parentbc347d7934edf30bfcbdc00a6a9791bbf02a6403 (diff)
downloadptxdist-c582c96ead94e0f642c3a714b4f34d780018155d.tar.gz
ptxdist-c582c96ead94e0f642c3a714b4f34d780018155d.tar.xz
* wget.make:
real wget fix git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8713 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/wget.make')
-rw-r--r--rules/wget.make86
1 files changed, 17 insertions, 69 deletions
diff --git a/rules/wget.make b/rules/wget.make
index ae0411388..6d785105a 100644
--- a/rules/wget.make
+++ b/rules/wget.make
@@ -1,7 +1,7 @@
# -*-makefile-*-
# $Id: template 2516 2005-04-25 10:29:55Z rsc $
#
-# Copyright (C) 2005 by Robert Schwebel
+# Copyright (C) 2005-2008 by Robert Schwebel
#
# See CREDITS for details about who has contributed to this project.
#
@@ -17,95 +17,43 @@ PACKAGES-$(PTXCONF_WGET) += wget
#
# Paths and names
#
-WGET_VERSION = 1.11.4
-WGET_PACKET = wget-$(WGET_VERSION)
-WGET_SUFFIX = tar.gz
-WGET_URL = $(PTXCONF_SETUP_GNUMIRROR)/wget/$(WGET_PACKET).$(WGET_SUFFIX)
-WGET_SOURCE = $(SRCDIR)/$(WGET_PACKET).$(WGET_SUFFIX)
-WGET_DIR = $(BUILDDIR)/$(WGET_PACKET)
+WGET_VERSION := 1.11.4
+WGET := wget-$(WGET_VERSION)
+WGET_SUFFIX := tar.gz
+WGET_URL := $(PTXCONF_SETUP_GNUMIRROR)/wget/$(WGET).$(WGET_SUFFIX)
+WGET_SOURCE := $(SRCDIR)/$(WGET).$(WGET_SUFFIX)
+WGET_DIR := $(BUILDDIR)/$(WGET)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
-wget_get: $(STATEDIR)/wget.get
-
-$(STATEDIR)/wget.get: $(wget_get_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
$(WGET_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, WGET)
# ----------------------------------------------------------------------------
-# Extract
-# ----------------------------------------------------------------------------
-
-wget_extract: $(STATEDIR)/wget.extract
-
-$(STATEDIR)/wget.extract: $(wget_extract_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(WGET_DIR))
- @$(call extract, WGET)
- @$(call patchin, WGET_PACKET)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-wget_prepare: $(STATEDIR)/wget.prepare
-
-WGET_PATH = PATH=$(CROSS_PATH)
-WGET_ENV = $(CROSS_ENV)
+WGET_PATH := PATH=$(CROSS_PATH)
+WGET_ENV := $(CROSS_ENV)
#
# autoconf
#
-WGET_AUTOCONF = $(CROSS_AUTOCONF_USR)
-WGET_AUTOCONF += --without-socks
-WGET_AUTOCONF += --without-ssl
-
-$(STATEDIR)/wget.prepare: $(wget_prepare_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(WGET_DIR)/config.cache)
- cd $(WGET_DIR) && \
- $(WGET_PATH) $(WGET_ENV) \
- ./configure $(WGET_AUTOCONF)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Compile
-# ----------------------------------------------------------------------------
-
-wget_compile: $(STATEDIR)/wget.compile
-
-$(STATEDIR)/wget.compile: $(wget_compile_deps_default)
- @$(call targetinfo, $@)
- cd $(WGET_DIR) && $(WGET_ENV) $(WGET_PATH) make
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-wget_install: $(STATEDIR)/wget.install
-
-$(STATEDIR)/wget.install: $(wget_install_deps_default)
- @$(call targetinfo, $@)
- @$(call install, WGET)
- @$(call touch, $@)
+WGET_AUTOCONF := \
+ $(CROSS_AUTOCONF_USR) \
+ --without-socks \
+ --without-ssl
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
-wget_targetinstall: $(STATEDIR)/wget.targetinstall
-
-$(STATEDIR)/wget.targetinstall: $(wget_targetinstall_deps_default)
- @$(call targetinfo, $@)
+$(STATEDIR)/wget.targetinstall:
+ @$(call targetinfo)
@$(call install_init, wget)
@$(call install_fixup, wget,PACKAGE,wget)
@@ -120,7 +68,7 @@ $(STATEDIR)/wget.targetinstall: $(wget_targetinstall_deps_default)
@$(call install_finish, wget)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean