summaryrefslogtreecommitdiffstats
path: root/rules/ifplugd.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-01-05 16:41:01 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-01-06 13:24:48 +0100
commitef4ceaa0437140dbd81b72f369e14f82057a165f (patch)
tree2ef16bc4f0892a3a7c2489745f2436ad787563fc /rules/ifplugd.make
parent31173fe1066f9973e9e81eafe1b8027f43229ed4 (diff)
downloadptxdist-ef4ceaa0437140dbd81b72f369e14f82057a165f.tar.gz
ptxdist-ef4ceaa0437140dbd81b72f369e14f82057a165f.tar.xz
[ifplugd] cleanup makefile
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/ifplugd.make')
-rw-r--r--rules/ifplugd.make71
1 files changed, 9 insertions, 62 deletions
diff --git a/rules/ifplugd.make b/rules/ifplugd.make
index 0abf3881f..c16712394 100644
--- a/rules/ifplugd.make
+++ b/rules/ifplugd.make
@@ -1,7 +1,7 @@
# -*-makefile-*-
-# $Id: ifplugd.make,v 1.1 2007-07-15 19:14:38 michl Exp $
#
# Copyright (C) 2007 by Ladislav Michl
+# 2010 Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -28,35 +28,14 @@ IFPLUGD_DIR := $(BUILDDIR)/$(IFPLUGD)
# Get
# ----------------------------------------------------------------------------
-ifplugd_get: $(STATEDIR)/ifplugd.get
-
-$(STATEDIR)/ifplugd.get: $(ifplugd_get_deps_default)
- @$(call targetinfo, $@)
- @$(call touch, $@)
-
$(IFPLUGD_SOURCE):
- @$(call targetinfo, $@)
+ @$(call targetinfo)
@$(call get, IFPLUGD)
# ----------------------------------------------------------------------------
-# Extract
-# ----------------------------------------------------------------------------
-
-ifplugd_extract: $(STATEDIR)/ifplugd.extract
-
-$(STATEDIR)/ifplugd.extract: $(ifplugd_extract_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(IFPLUGD_DIR))
- @$(call extract, IFPLUGD)
- @$(call patchin, IFPLUGD)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-ifplugd_prepare: $(STATEDIR)/ifplugd.prepare
-
IFPLUGD_PATH := PATH=$(CROSS_PATH)
IFPLUGD_ENV := \
$(CROSS_ENV)
@@ -68,64 +47,32 @@ IFPLUGD_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--disable-lynx
-$(STATEDIR)/ifplugd.prepare: $(ifplugd_prepare_deps_default)
- @$(call targetinfo, $@)
- @$(call clean, $(IFPLUGD_DIR)/config.cache)
- cd $(IFPLUGD_DIR) && \
- $(IFPLUGD_PATH) $(IFPLUGD_ENV) \
- ./configure $(IFPLUGD_AUTOCONF)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Compile
-# ----------------------------------------------------------------------------
-
-ifplugd_compile: $(STATEDIR)/ifplugd.compile
-
-$(STATEDIR)/ifplugd.compile: $(ifplugd_compile_deps_default)
- @$(call targetinfo, $@)
- cd $(IFPLUGD_DIR) && $(IFPLUGD_PATH) $(MAKE) $(PARALLELMFLAGS)
- @$(call touch, $@)
-
-# ----------------------------------------------------------------------------
-# Install
-# ----------------------------------------------------------------------------
-
-ifplugd_install: $(STATEDIR)/ifplugd.install
-
-$(STATEDIR)/ifplugd.install: $(ifplugd_install_deps_default)
- @$(call targetinfo, $@)
- @$(call install, IFPLUGD)
- @$(call touch, $@)
-
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
-ifplugd_targetinstall: $(STATEDIR)/ifplugd.targetinstall
-
-$(STATEDIR)/ifplugd.targetinstall: $(ifplugd_targetinstall_deps_default)
- @$(call targetinfo, $@)
+$(STATEDIR)/ifplugd.targetinstall:
+ @$(call targetinfo)
@$(call install_init, ifplugd)
@$(call install_fixup, ifplugd,PACKAGE,ifplugd)
@$(call install_fixup, ifplugd,PRIORITY,optional)
@$(call install_fixup, ifplugd,VERSION,$(IFPLUGD_VERSION))
@$(call install_fixup, ifplugd,SECTION,base)
- @$(call install_fixup, ifplugd,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, ifplugd,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, ifplugd,DEPENDS,)
@$(call install_fixup, ifplugd,DESCRIPTION,missing)
- @$(call install_copy, ifplugd, 0, 0, 0755, $(IFPLUGD_DIR)/src/ifplugd, /usr/sbin/ifplugd)
- @$(call install_copy, ifplugd, 0, 0, 0755, $(IFPLUGD_DIR)/conf/ifplugd.action, /etc/ifplugd/ifplugd.action, n)
+ @$(call install_copy, ifplugd, 0, 0, 0755, -, /usr/sbin/ifplugd)
+ @$(call install_copy, ifplugd, 0, 0, 0755, -, /etc/ifplugd/ifplugd.action, n)
ifdef PTXCONF_IFPLUGD_STATUS
- @$(call install_copy, ifplugd, 0, 0, 0755, $(IFPLUGD_DIR)/src/ifplugstatus, /usr/sbin/ifplugstatus)
+ @$(call install_copy, ifplugd, 0, 0, 0755, -, /usr/sbin/ifplugstatus)
endif
@$(call install_finish, ifplugd)
- @$(call touch, $@)
+ @$(call touch)
# ----------------------------------------------------------------------------
# Clean