# -*-makefile-*- # $Id$ # # Copyright (C) 2002 by Pengutronix e.K., Hildesheim, Germany # 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. # # RSC: FIXME: make this a hosttool # # We provide this package # #PACKAGES += autoconf213 # # Paths and names # AUTOCONF213 = autoconf-2.13 AUTOCONF213_URL = $(PTXCONF_SETUP_GNUMIRROR)/autoconf/$(AUTOCONF213).tar.gz AUTOCONF213_SOURCE = $(SRCDIR)/$(AUTOCONF213).tar.gz AUTOCONF213_DIR = $(BUILDDIR)/$(AUTOCONF213) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- autoconf213_get: $(STATEDIR)/autoconf213.get $(STATEDIR)/autoconf213.get: $(AUTOCONF213_SOURCE) @$(call targetinfo, $@) touch $@ $(AUTOCONF213_SOURCE): @$(call targetinfo, $@) @$(call get, $(AUTOCONF213_URL)) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- autoconf213_extract: $(STATEDIR)/autoconf213.extract $(STATEDIR)/autoconf213.extract: $(STATEDIR)/autoconf213.get @$(call targetinfo, $@) @$(call clean, $(AUTOCONF213_DIR)) @$(call extract, $(AUTOCONF213_SOURCE)) touch $@ # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- autoconf213_prepare: $(STATEDIR)/autoconf213.prepare AUTOCONF213_ENV = $(HOSTCC_ENV) $(STATEDIR)/autoconf213.prepare: $(STATEDIR)/autoconf213.extract @$(call targetinfo, $@) cd $(AUTOCONF213_DIR) && \ $(AUTOCONF213_ENV) \ ./configure --prefix=$(PTXCONF_PREFIX)/$(AUTOCONF213) touch $@ # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- autoconf213_compile: $(STATEDIR)/autoconf213.compile $(STATEDIR)/autoconf213.compile: $(STATEDIR)/autoconf213.prepare @$(call targetinfo, $@) make -C $(AUTOCONF213_DIR) touch $@ # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- autoconf213_install: $(STATEDIR)/autoconf213.install $(STATEDIR)/autoconf213.install: $(STATEDIR)/autoconf213.compile @$(call targetinfo, $@) make -C $(AUTOCONF213_DIR) install touch $@ # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- autoconf213_targetinstall: $(STATEDIR)/autoconf213.targetinstall $(STATEDIR)/autoconf213.targetinstall: $(STATEDIR)/autoconf213.install @$(call targetinfo, $@) touch $@ # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- autoconf213_clean: rm -rf $(STATEDIR)/autoconf213.* $(AUTOCONF213_DIR) # vim: syntax=make