From 00c8b9b272b41911d3f6b08b74f1886ac669410f Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 5 Jan 2010 16:11:46 +0100 Subject: [netcat] cleanup makefile Signed-off-by: Michael Olbrich --- rules/netcat.make | 70 +++++++------------------------------------------------ 1 file changed, 8 insertions(+), 62 deletions(-) (limited to 'rules/netcat.make') diff --git a/rules/netcat.make b/rules/netcat.make index 9f139f3f8..6e5f5c6bf 100644 --- a/rules/netcat.make +++ b/rules/netcat.make @@ -1,7 +1,7 @@ # -*-makefile-*- -# $Id: template 2606 2005-05-10 21:49:41Z rsc $ # # Copyright (C) 2005 by Bjoern Buerger +# 2010 Michael Olbrich # # See CREDITS for details about who has contributed to this project. # @@ -29,42 +29,21 @@ NETCAT_DIR := $(BUILDDIR)/$(NETCAT) # Get # ---------------------------------------------------------------------------- -netcat_get: $(STATEDIR)/netcat.get - -$(STATEDIR)/netcat.get: $(netcat_get_deps_default) - @$(call targetinfo, $@) - @$(call touch, $@) - $(NETCAT_SOURCE): - @$(call targetinfo, $@) + @$(call targetinfo) @$(call get, NETCAT) -# ---------------------------------------------------------------------------- -# Extract -# ---------------------------------------------------------------------------- - -netcat_extract: $(STATEDIR)/netcat.extract - -$(STATEDIR)/netcat.extract: $(netcat_extract_deps_default) - @$(call targetinfo, $@) - @$(call clean, $(NETCAT_DIR)) - @$(call extract, NETCAT) - @$(call patchin, NETCAT) - @$(call touch, $@) - # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- -netcat_prepare: $(STATEDIR)/netcat.prepare - NETCAT_PATH := PATH=$(CROSS_PATH) NETCAT_ENV := $(CROSS_ENV) # # autoconf # -NETCAT_AUTOCONF := $(CROSS_AUTOCONF_USR) +NETCAT_AUTOCONF := $(CROSS_AUTOCONF_ROOT) ifdef PTXCONF_NETCAT_OLD_HEXDUMP NETCAT_AUTOCONF += --enable-oldhexdump @@ -78,61 +57,28 @@ else NETCAT_AUTOCONF += --disable-oldtelnet endif - -$(STATEDIR)/netcat.prepare: $(netcat_prepare_deps_default) - @$(call targetinfo, $@) - @$(call clean, $(NETCAT_DIR)/config.cache) - cd $(NETCAT_DIR) && \ - $(NETCAT_PATH) $(NETCAT_ENV) \ - ./configure $(NETCAT_AUTOCONF) - @$(call touch, $@) - -# ---------------------------------------------------------------------------- -# Compile -# ---------------------------------------------------------------------------- - -netcat_compile: $(STATEDIR)/netcat.compile - -$(STATEDIR)/netcat.compile: $(netcat_compile_deps_default) - @$(call targetinfo, $@) - cd $(NETCAT_DIR) && $(NETCAT_ENV) $(NETCAT_PATH) make - @$(call touch, $@) - -# ---------------------------------------------------------------------------- -# Install -# ---------------------------------------------------------------------------- - -netcat_install: $(STATEDIR)/netcat.install - -$(STATEDIR)/netcat.install: $(netcat_install_deps_default) - @$(call targetinfo, $@) - @$(call install, NETCAT) - @$(call touch, $@) - # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -netcat_targetinstall: $(STATEDIR)/netcat.targetinstall - -$(STATEDIR)/netcat.targetinstall: $(netcat_targetinstall_deps_default) - @$(call targetinfo, $@) +$(STATEDIR)/netcat.targetinstall: + @$(call targetinfo) @$(call install_init, netcat) @$(call install_fixup, netcat,PACKAGE,netcat) @$(call install_fixup, netcat,PRIORITY,optional) @$(call install_fixup, netcat,VERSION,$(NETCAT_VERSION)) @$(call install_fixup, netcat,SECTION,base) - @$(call install_fixup, netcat,AUTHOR,"Bjoern Buerger ") + @$(call install_fixup, netcat,AUTHOR,"Bjoern Buerger ") @$(call install_fixup, netcat,DEPENDS,) @$(call install_fixup, netcat,DESCRIPTION,missing) - @$(call install_copy, netcat, 0, 0, 0755, $(NETCAT_DIR)/src/netcat, /bin/netcat) + @$(call install_copy, netcat, 0, 0, 0755, -, /bin/netcat) @$(call install_link, netcat, netcat, /bin/nc) @$(call install_finish, netcat) - @$(call touch, $@) + @$(call touch) # ---------------------------------------------------------------------------- # Clean -- cgit v1.2.3