diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-03-11 09:55:10 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-03-11 09:55:10 +0000 |
commit | d1f0c1534155f21de9ef49becd700abfba556560 (patch) | |
tree | 6d40188d882c947f729e99d95c2c2c6c475fd0dd /rules/timeout.make | |
parent | 28e0bbe023dff51e9ecef4fe3020e3dfad2dd081 (diff) | |
download | ptxdist-d1f0c1534155f21de9ef49becd700abfba556560.tar.gz ptxdist-d1f0c1534155f21de9ef49becd700abfba556560.tar.xz |
[timeout] added target timeout
and adopted host-timeout to existing target
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10051 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/timeout.make')
-rw-r--r-- | rules/timeout.make | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/rules/timeout.make b/rules/timeout.make new file mode 100644 index 000000000..1993f03e3 --- /dev/null +++ b/rules/timeout.make @@ -0,0 +1,94 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_TIMEOUT) += timeout + +# +# Paths and names +# +TIMEOUT_VERSION := 1.18 +TIMEOUT := tct-$(TIMEOUT_VERSION) +TIMEOUT_SUFFIX := tar.gz +TIMEOUT_URL := http://www.porcupine.org/forensics/$(TIMEOUT).$(TIMEOUT_SUFFIX) +TIMEOUT_SOURCE := $(SRCDIR)/$(TIMEOUT).$(TIMEOUT_SUFFIX) +TIMEOUT_DIR := $(BUILDDIR)/$(TIMEOUT) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(TIMEOUT_SOURCE): + @$(call targetinfo) + @$(call get, TIMEOUT) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +TIMEOUT_PATH := PATH=$(CROSS_PATH) +TIMEOUT_ENV := $(CROSS_ENV) + +$(STATEDIR)/timeout.prepare: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/timeout.compile: + @$(call targetinfo) + cd $(TIMEOUT_DIR)/src/misc && $(TIMEOUT_PATH) $(MAKE) $(PARALLELMFLAGS_BROKEN) ../../bin/timeout + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/timeout.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/timeout.targetinstall: + @$(call targetinfo) + + @$(call install_init, timeout) + @$(call install_fixup, timeout,PACKAGE,timeout) + @$(call install_fixup, timeout,PRIORITY,optional) + @$(call install_fixup, timeout,VERSION,$(TIMEOUT_VERSION)) + @$(call install_fixup, timeout,SECTION,base) + @$(call install_fixup, timeout,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>") + @$(call install_fixup, timeout,DEPENDS,) + @$(call install_fixup, timeout,DESCRIPTION,missing) + + @$(call install_copy, timeout, 0, 0, 0755, $(TIMEOUT_DIR)/bin/timeout, /usr/bin/timeout) + + @$(call install_finish, timeout) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +timeout_clean: + rm -rf $(STATEDIR)/timeout.* + rm -rf $(PKGDIR)/timeout_* + rm -rf $(TIMEOUT_DIR) + +# vim: syntax=make |