# -*-makefile-*- # $Id$ # # Copyright (C) 2006 by Marc Kleine-Budde # # 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 # CROSS_PACKAGES-$(PTXCONF_CROSS_MODULE_INIT_TOOLS) += cross-module-init-tools # # Paths and names # CROSS_MODULE_INIT_TOOLS_DIR = $(CROSS_BUILDDIR)/$(MODULE_INIT_TOOLS) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(STATEDIR)/cross-module-init-tools.get: $(STATEDIR)/module-init-tools.get @$(call targetinfo) @$(call touch) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- $(STATEDIR)/cross-module-init-tools.extract: @$(call targetinfo) @$(call clean, $(CROSS_MODULE_INIT_TOOLS_DIR)) @$(call extract, MODULE_INIT_TOOLS, $(CROSS_BUILDDIR)) @$(call patchin, MODULE_INIT_TOOLS, $(CROSS_MODULE_INIT_TOOLS_DIR)) @$(call touch) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- cross-module-init-tools_prepare: $(STATEDIR)/cross-module-init-tools.prepare CROSS_MODULE_INIT_TOOLS_PATH := PATH=$(CROSS_PATH) CROSS_MODULE_INIT_TOOLS_ENV := $(HOST_ENV) # # autoconf # CROSS_MODULE_INIT_TOOLS_AUTOCONF := \ --prefix=$(PTXCONF_SYSROOT_CROSS) \ --target=$(PTXCONF_GNU_TARGET) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/cross-module-init-tools.compile: @$(call targetinfo) cd $(CROSS_MODULE_INIT_TOOLS_DIR) && $(CROSS_MODULE_INIT_TOOLS_PATH) $(MAKE) depmod @$(call touch) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/cross-module-init-tools.install: @$(call targetinfo) install -D -m 755 $(CROSS_MODULE_INIT_TOOLS_DIR)/depmod $(PTXCONF_SYSROOT_CROSS)/sbin/$(PTXCONF_GNU_TARGET)-depmod @$(call touch) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- cross-module-init-tools_clean: rm -rf $(STATEDIR)/cross-module-init-tools.* rm -rf $(PKGDIR)/cross-module-init-tools_* rm -rf $(CROSS_MODULE_INIT_TOOLS_DIR) # vim: syntax=make