# $Id$ ## @file # # kNIX Boostrap Makefile for autoconf 2.13 # # Copyright (c) 2007 knut st. osmundsen # # # This file is part of kNIX. # # kNIX is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # kNIX is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with kNIX; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # DEPTH = ../../.. include $(PATH_KBUILD)/header.kmk # HASH ifndef HASH HASH :=\# endif # The autoconf version. VER = 2.13 # Edit function used to transform bin/*.in and lib/*.in files. EDIT_FILE = $(SED) \ -e 's|@SHELL[@]|sh.exe|g' \ -e 's|^$(HASH)! */bin/sh|$(HASH)! sh.exe|g' \ -e 's|@M4[@]|m4.exe|g' \ -e 's|@AWK[@]|gawk.exe|g' \ -e 's|@PERL[@]|perl.exe|g' # # /usr/bin/ # INSTALLS += autoconf-bin autoconf-bin_TEMPLATE = usr.bin autoconf-bin_SOURCES = \ $(PATH_TARGET)/bin/autoconf-$(VER) \ $(PATH_TARGET)/bin/autoheader-$(VER) \ $(PATH_TARGET)/bin/autoreconf-$(VER) \ $(PATH_TARGET)/bin/autoscan-$(VER) \ $(PATH_TARGET)/bin/autoupdate-$(VER) \ $(PATH_TARGET)/bin/ifnames-$(VER) define def_autoconf-bin $(PATH_TARGET)/bin/$(name)-$(VER): $(name)$(if $(eq autoscan,$(name)),.pl,.sh) #kNIX-bootstrap.kmk $(QUIET)$(MKDIR) -p $$(@D) $(call EDIT_FILE,$(name)) $$< > $$@.tmp $(INSTALL) -m a+x,a-w $$@.tmp $$@ $(RM) -f $$@.tmp endef $(foreach name, autoconf autoheader autoreconf autoscan autoupdate ifnames, \ $(eval $(def_autoconf-bin))) # # /usr/share/autoconf # INSTALLS += share-autoconf share-autoconf_TEMPLATE = gendata share-autoconf_INST = usr/share/autoconf/ share-autoconf_SOURCES = \ acconfig.h \ acfunctions \ acgeneral.m4 \ acheaders \ acidentifiers \ acmakevars \ acoldnames.m4 \ acprograms \ acspecific.m4 \ autoconf.m4 \ autoheader.m4 \ include $(PATH_KBUILD)/footer.kmk