/* * vii - buffer and display output * Copyright (C) 2005 Peter Miller * * This program 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. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: autoconf.cook */ configure: etc/configure.in install-sh { /* * unfortunately, * install-sh must be in the current directory */ if [not [exists install-sh]] then cp [resolve install-sh] install-sh set clearstat; autoconf [resolve etc/configure.in] > [target]; chmod 755 [target]; } /* * The install-sh script can come from a huge range of places, depending * on what distribution you have installed (or whether you built it from * the tarball). */ loop install-sh-maybe = /usr/share/autoconf/install-sh [glob /usr/share/automake*/install-sh] [glob /usr/local/share/autoconf*/install-sh] [glob /usr/local/share/automake*/install-sh] { if [exists [install-sh-maybe]] then { install-sh = [install-sh-maybe]; loopstop; } } if [not [install-sh]] then fail "Can't locate the ``install-sh'' script from GNU automake"; install-sh: [install-sh] { cp [need] [target]; chmod 755 [target]; } [arch]/config.status: configure install-sh { if [not [exists install-sh]] then cp [resolve install-sh] install-sh set clearstat; ./[resolve configure] --cache-file\=/dev/null --verbose --no-create --srcdir\=.; mv config.status [arch]/config.status; mv config.log [arch]/config.log; } common/config.h.in: etc/configure.in { autoheader [resolve etc/configure.in] > [target]; } [arch]/common/config.h: common/config.h.in [arch]/config.status { if [not [exists [dirname [target]]]] then mkdir [dirname [target]] set clearstat; /* these 2 env vars control what is generated */ CONFIG_FILES\= CONFIG_HEADERS\=[target]\:[resolve common/config.h.in] [resolve [arch]/config.status]; } [arch]/etc/Howto.conf: etc/Howto.conf.in [arch]/config.status { if [not [exists etc]] then mkdir etc set clearstat; /* these 2 env vars control what is generated */ CONFIG_FILES\=[target]\:[resolve etc/Howto.conf.in] CONFIG_HEADERS\= [resolve [arch]/config.status]; } [arch]/Makefile: Makefile.in [arch]/config.status { /* these 2 env vars control what is generated */ CONFIG_FILES\=[target]\:[resolve Makefile.in] CONFIG_HEADERS\= [resolve [arch]/config.status]; } integration-build-targets += [arch]/Makefile ;