summaryrefslogtreecommitdiffstats
path: root/rules/hexedit.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/hexedit.make')
-rw-r--r--rules/hexedit.make71
1 files changed, 15 insertions, 56 deletions
diff --git a/rules/hexedit.make b/rules/hexedit.make
index 26769d2cb..2cfae175b 100644
--- a/rules/hexedit.make
+++ b/rules/hexedit.make
@@ -1,7 +1,7 @@
# -*-makefile-*-
-# $Id: template,v 1.14 2004/07/01 16:08:08 rsc Exp $
#
-# Copyright (C) 2004 by BSP
+# Copyright (C) 2004 by Benedikt Spranger
+# 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -29,97 +29,56 @@ HEXEDIT_DIR := $(BUILDDIR)/$(HEXEDIT)
# Get
# ----------------------------------------------------------------------------
-hexedit_get: $(STATEDIR)/hexedit.get
-
-$(STATEDIR)/hexedit.get: $(hexedit_get_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
$(HEXEDIT_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, HEXEDIT)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
-hexedit_extract: $(STATEDIR)/hexedit.extract
-
-$(STATEDIR)/hexedit.extract: $(hexedit_extract_deps_default)
- @$(call targetinfo, $@)
+$(STATEDIR)/hexedit.extract:
+ @$(call targetinfo)
@$(call clean, $(HEXEDIT_DIR))
@$(call extract, HEXEDIT)
mv $(BUILDDIR)/hexedit $(HEXEDIT_DIR)
@$(call patchin, HEXEDIT)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-hexedit_prepare: $(STATEDIR)/hexedit.prepare
-
-HEXEDIT_PATH = PATH=$(CROSS_PATH)
-HEXEDIT_ENV = $(CROSS_ENV)
-HEXEDIT_ENV += CFLAGS='$(strip $(subst $(quote),,$(TARGET_CFLAGS))) $(strip $(subst $(quote),,$(TARGET_CPPFLAGS)))'
+HEXEDIT_PATH := PATH=$(CROSS_PATH)
+HEXEDIT_ENV := $(CROSS_ENV)
#
# autoconf
#
-HEXEDIT_AUTOCONF = $(CROSS_AUTOCONF_USR)
-
-$(STATEDIR)/hexedit.prepare: $(hexedit_prepare_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(HEXEDIT_DIR)/config.cache)
- cd $(HEXEDIT_DIR) && \
- $(HEXEDIT_PATH) $(HEXEDIT_ENV) \
- ./configure $(HEXEDIT_AUTOCONF)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Compile
-# ----------------------------------------------------------------------------
-
-hexedit_compile: $(STATEDIR)/hexedit.compile
-
-$(STATEDIR)/hexedit.compile: $(hexedit_compile_deps_default)
- @$(call targetinfo, $@)
- cd $(HEXEDIT_DIR) && $(HEXEDIT_ENV) $(HEXEDIT_PATH) make
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-hexedit_install: $(STATEDIR)/hexedit.install
-
-$(STATEDIR)/hexedit.install: $(hexedit_install_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
+HEXEDIT_AUTOCONF := $(CROSS_AUTOCONF_USR)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
-hexedit_targetinstall: $(STATEDIR)/hexedit.targetinstall
-
-$(STATEDIR)/hexedit.targetinstall: $(hexedit_targetinstall_deps_default)
- @$(call targetinfo, $@)
+$(STATEDIR)/hexedit.targetinstall:
+ @$(call targetinfo)
@$(call install_init, hexedit)
@$(call install_fixup, hexedit,PACKAGE,hexedit)
@$(call install_fixup, hexedit,PRIORITY,optional)
@$(call install_fixup, hexedit,VERSION,$(HEXEDIT_VERSION))
@$(call install_fixup, hexedit,SECTION,base)
- @$(call install_fixup, hexedit,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, hexedit,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, hexedit,DEPENDS,)
@$(call install_fixup, hexedit,DESCRIPTION,missing)
- @$(call install_copy, hexedit, 0, 0, 0755, $(HEXEDIT_DIR)/hexedit, /usr/bin/hexedit)
+ @$(call install_copy, hexedit, 0, 0, 0755, -, \
+ /usr/bin/hexedit)
@$(call install_finish, hexedit)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean