# -*-makefile-*- # $Id$ # # Copyright (C) 2004 by Robert Schwebel # # 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_MEMTEST) += memtest # # Paths and names # MEMTEST_VERSION := 0.0.4 MEMTEST := memtest-$(MEMTEST_VERSION) MEMTEST_SUFFIX := tar.bz2 MEMTEST_URL := http://carpanta.dc.fi.udc.es/~quintela/memtest/$(MEMTEST).$(MEMTEST_SUFFIX) MEMTEST_SOURCE := $(SRCDIR)/$(MEMTEST).$(MEMTEST_SUFFIX) MEMTEST_DIR := $(BUILDDIR)/$(MEMTEST) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(MEMTEST_SOURCE): @$(call targetinfo) @$(call get, MEMTEST) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- MEMTEST_PATH := PATH=$(CROSS_PATH) MEMTEST_ENV := $(CROSS_ENV) $(STATEDIR)/memtest.prepare: @$(call targetinfo) @$(call touch) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/memtest.compile: @$(call targetinfo) cd $(MEMTEST_DIR) && $(MEMTEST_ENV) $(MEMTEST_PATH) make mtest @$(call touch) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/memtest.install: @$(call targetinfo) @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/memtest.targetinstall: @$(call targetinfo) @$(call install_init, memtest) @$(call install_fixup, memtest,PACKAGE,memtest) @$(call install_fixup, memtest,PRIORITY,optional) @$(call install_fixup, memtest,VERSION,$(MEMTEST_VERSION)) @$(call install_fixup, memtest,SECTION,base) @$(call install_fixup, memtest,AUTHOR,"Robert Schwebel ") @$(call install_fixup, memtest,DEPENDS,) @$(call install_fixup, memtest,DESCRIPTION,missing) @$(call install_copy, memtest, 0, 0, 0755, $(MEMTEST_DIR)/mtest, /usr/sbin/memtest) @$(call install_finish, memtest) @$(call touch) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- memtest_clean: rm -rf $(STATEDIR)/memtest.* rm -rf $(PKGDIR)/memtest_* rm -rf $(MEMTEST_DIR) # vim: syntax=make