summaryrefslogtreecommitdiffstats
path: root/rules/calibrator.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-01-09 21:25:39 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-01-10 15:35:08 +0100
commit4aad5e8dd850de2d92dd13739ab6673ee0e40a79 (patch)
tree764a6a3b75c2c0ac6228475a3c8267c18581961a /rules/calibrator.make
parentff3232d7b576617d917911f291642ad02ad02bc8 (diff)
downloadptxdist-4aad5e8dd850de2d92dd13739ab6673ee0e40a79.tar.gz
ptxdist-4aad5e8dd850de2d92dd13739ab6673ee0e40a79.tar.xz
[calibrator] cleanup makefile
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/calibrator.make')
-rw-r--r--rules/calibrator.make67
1 files changed, 11 insertions, 56 deletions
diff --git a/rules/calibrator.make b/rules/calibrator.make
index d402fd16e..bee177edc 100644
--- a/rules/calibrator.make
+++ b/rules/calibrator.make
@@ -1,5 +1,4 @@
# -*-makefile-*-
-# $Id: template 6655 2007-01-02 12:55:21Z rsc $
#
# Copyright (C) 2007 by Michael Olbrich <m.olbrich@pengutronix.de>
#
@@ -28,83 +27,39 @@ CALIBRATOR_DIR := $(BUILDDIR)/$(CALIBRATOR)
# Get
# ----------------------------------------------------------------------------
-calibrator_get: $(STATEDIR)/calibrator.get
-
-$(STATEDIR)/calibrator.get: $(calibrator_get_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
$(CALIBRATOR_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, CALIBRATOR)
# ----------------------------------------------------------------------------
-# Extract
-# ----------------------------------------------------------------------------
-
-calibrator_extract: $(STATEDIR)/calibrator.extract
-
-$(STATEDIR)/calibrator.extract: $(calibrator_extract_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(CALIBRATOR_DIR))
- @$(call extract, CALIBRATOR)
- @$(call patchin, CALIBRATOR)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Prepare
-# ----------------------------------------------------------------------------
-
-calibrator_prepare: $(STATEDIR)/calibrator.prepare
-
-CALIBRATOR_PATH := PATH=$(CROSS_PATH)
-CALIBRATOR_ENV := $(CROSS_ENV)
-
-#
-# autoconf
-#
-CALIBRATOR_AUTOCONF := $(CROSS_AUTOCONF_USR)
-
-$(STATEDIR)/calibrator.prepare: $(calibrator_prepare_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
-calibrator_compile: $(STATEDIR)/calibrator.compile
-
-$(STATEDIR)/calibrator.compile: $(calibrator_compile_deps_default)
- @$(call targetinfo, $@)
- cd $(CALIBRATOR_DIR) && $(CALIBRATOR_PATH) CC=$(CROSS_CC) LDFLAGS=-lm $(MAKE) $(PARALLELMFLAGS) calibrator
- @$(call touch, $@)
+CALIBRATOR_PATH := PATH=$(CROSS_PATH)
+CALIBRATOR_MAKE_ENV := $(CROSS_ENV) LDFLAGS=-lm
+CALIBRATOR_MAKE_OPT := calibrator
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
-calibrator_install: $(STATEDIR)/calibrator.install
-
-$(STATEDIR)/calibrator.install: $(calibrator_install_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
+$(STATEDIR)/calibrator.install:
+ @$(call targetinfo)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
-calibrator_targetinstall: $(STATEDIR)/calibrator.targetinstall
-
-$(STATEDIR)/calibrator.targetinstall: $(calibrator_targetinstall_deps_default)
- @$(call targetinfo, $@)
+$(STATEDIR)/calibrator.targetinstall:
+ @$(call targetinfo)
@$(call install_init, calibrator)
@$(call install_fixup, calibrator,PACKAGE,calibrator)
@$(call install_fixup, calibrator,PRIORITY,optional)
@$(call install_fixup, calibrator,VERSION,$(CALIBRATOR_VERSION))
@$(call install_fixup, calibrator,SECTION,base)
- @$(call install_fixup, calibrator,AUTHOR,"Michael Olbrich <m.olbrich\@pengutronix.de>")
+ @$(call install_fixup, calibrator,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, calibrator,DEPENDS,)
@$(call install_fixup, calibrator,DESCRIPTION,missing)
@@ -112,7 +67,7 @@ $(STATEDIR)/calibrator.targetinstall: $(calibrator_targetinstall_deps_default)
@$(call install_finish, calibrator)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean