# -*-makefile-*- # $Id$ # # Copyright (C) @YEAR@ by @AUTHOR@ # # 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_@PACKET@) += @packet@ # # Paths and names and versions # @PACKET@ := @packet_filename@ @PACKET@_VERSION := @VERSION@ @PACKET@_URL := @URL@/$(@PACKET@) @PACKET@_SOURCE := $(SRCDIR)/$(@PACKET@) @PACKET@_DIR := $(BUILDDIR)/$(@PACKET@) ifdef PTXCONF_@PACKET@ $(STATEDIR)/kernel.targetinstall.post: $(STATEDIR)/@packet@.targetinstall endif # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.get: @$(call targetinfo, $@) @$(call touch, $@) $(@PACKET@_SOURCE): @$(call targetinfo, $@) @$(call get, @PACKET@) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.extract: @$(call targetinfo, $@) @$(call clean, $(@PACKET@_DIR)) @$(call extract, @PACKET@) @$(call patchin, @PACKET@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- @PACKET@_PATH := PATH=$(CROSS_PATH) @PACKET@_ENV := $(CROSS_ENV) $(STATEDIR)/@packet@.prepare: @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.compile: @$(call targetinfo, $@) cd $(@PACKET@_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.install: $(@packet@_install_deps_default) @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/@packet@.targetinstall: @$(call targetinfo, $@) cd $(@PACKET@_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) modules_install @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- @packet@_clean: rm -rf $(STATEDIR)/@packet@.* cd $(@PACKET@_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) clean # vim: syntax=make