diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-07-27 22:30:21 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-07-28 12:50:03 +0200 |
commit | 580f7b7cc09ff4f32b3413b36de549498ff71b2f (patch) | |
tree | 1745f7fa5716a30bfb00004f3018813f2cd8077f /rules/hexedit.make | |
parent | 1cc43a35ee2ed090f129eab32fbfe630fc4e7e8c (diff) | |
download | ptxdist-580f7b7cc09ff4f32b3413b36de549498ff71b2f.tar.gz ptxdist-580f7b7cc09ff4f32b3413b36de549498ff71b2f.tar.xz |
[hexedit] reworked
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/hexedit.make')
-rw-r--r-- | rules/hexedit.make | 71 |
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 |