[3845] | 1 | # $Id: kNIX-bootstrap.kmk 3116 2007-04-15 18:41:33Z bird $
|
---|
| 2 | ## @file
|
---|
| 3 | #
|
---|
| 4 | # kNIX Boostrap Makefile for automake 1.4
|
---|
| 5 | #
|
---|
| 6 | # Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
| 7 | #
|
---|
| 8 | #
|
---|
| 9 | # This file is part of kNIX.
|
---|
| 10 | #
|
---|
| 11 | # kNIX is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU General Public License as published by
|
---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | # (at your option) any later version.
|
---|
| 15 | #
|
---|
| 16 | # kNIX is distributed in the hope that it will be useful,
|
---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | # GNU General Public License for more details.
|
---|
| 20 | #
|
---|
| 21 | # You should have received a copy of the GNU General Public License
|
---|
| 22 | # along with kNIX; if not, write to the Free Software
|
---|
| 23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 24 | #
|
---|
| 25 | #
|
---|
| 26 |
|
---|
| 27 | DEPTH = ../../..
|
---|
| 28 | include $(PATH_KBUILD)/header.kmk
|
---|
| 29 |
|
---|
| 30 | # HASH
|
---|
| 31 | ifndef HASH
|
---|
| 32 | HASH :=\#
|
---|
| 33 | endif
|
---|
| 34 |
|
---|
| 35 | # The automake version.
|
---|
| 36 | VER = 1.4
|
---|
| 37 | FULL_VER = 1.4-p6
|
---|
| 38 |
|
---|
| 39 | #
|
---|
| 40 | # /usr/bin/
|
---|
| 41 | #
|
---|
| 42 | INSTALLS += automake-bin
|
---|
| 43 | automake-bin_TEMPLATE = usr.bin
|
---|
| 44 | automake-bin_SOURCES = \
|
---|
| 45 | $(PATH_TARGET)/automake-$(VER) \
|
---|
| 46 | $(PATH_TARGET)/aclocal-$(VER)
|
---|
| 47 |
|
---|
| 48 | # Edit function used to transform *.in and m4/*.in files.
|
---|
| 49 | EDIT_FILE = $(SED) \
|
---|
| 50 | -e 's|@PERL[@]|perl.exe|g' \
|
---|
| 51 | -e 's|@TAR[@]|tar.exe|g' \
|
---|
| 52 | -e 's|@prefix[@]|/usr|g' \
|
---|
| 53 | -e 's|@VERSION[@]|$(FULL_VER)|g' \
|
---|
| 54 | -e 's|@APIVERSION[@]|$(VER)|g' \
|
---|
| 55 | -e 's|@PACKAGE[@]|automake|g' \
|
---|
| 56 | -e 's|@PACKAGE_NAME[@]|GNU Automake|g' \
|
---|
| 57 | -e 's|@configure_input[@]|$(basename $1). Generated from $1 by kBuild.|g' \
|
---|
| 58 |
|
---|
| 59 | # The file edit rules.
|
---|
| 60 | define def_automake-bin
|
---|
| 61 | $(PATH_TARGET)/$(name)-$(VER): $(name).in #kNIX-bootstrap.kmk
|
---|
| 62 | $(QUIET)$(MKDIR) -p $$(@D)
|
---|
| 63 | $(call EDIT_FILE,$(name)) $$< > $$@.tmp
|
---|
| 64 | $(INSTALL) -m a+x,a-w $$@.tmp $$@
|
---|
| 65 | $(RM) -f $$@.tmp
|
---|
| 66 | endef
|
---|
| 67 | $(foreach name, aclocal automake, \
|
---|
| 68 | $(eval $(def_automake-bin)))
|
---|
| 69 |
|
---|
| 70 | #
|
---|
| 71 | # /usr/share/automake-x.y
|
---|
| 72 | #
|
---|
| 73 | INSTALLS += share-automake
|
---|
| 74 | share-automake_TEMPLATE = gendata
|
---|
| 75 | share-automake_INST = usr/share/automake-$(VER)/
|
---|
| 76 | share-automake_SOURCES = \
|
---|
| 77 | COPYING \
|
---|
| 78 | INSTALL \
|
---|
| 79 | texinfo.tex \
|
---|
| 80 | ansi2knr.c \
|
---|
| 81 | ansi2knr.1 \
|
---|
| 82 | config.sub \
|
---|
| 83 | \
|
---|
| 84 | clean-hdr.am \
|
---|
| 85 | clean-kr.am \
|
---|
| 86 | clean.am \
|
---|
| 87 | comp-vars.am \
|
---|
| 88 | compile.am \
|
---|
| 89 | data-clean.am \
|
---|
| 90 | data.am \
|
---|
| 91 | dejagnu.am \
|
---|
| 92 | depend.am \
|
---|
| 93 | depend2.am \
|
---|
| 94 | dist-vars.am \
|
---|
| 95 | footer.am \
|
---|
| 96 | header-vars.am \
|
---|
| 97 | header.am \
|
---|
| 98 | java-clean.am \
|
---|
| 99 | java.am \
|
---|
| 100 | kr-extra.am \
|
---|
| 101 | library.am \
|
---|
| 102 | libs-clean.am \
|
---|
| 103 | libs.am \
|
---|
| 104 | libtool.am \
|
---|
| 105 | lisp-clean.am \
|
---|
| 106 | lisp.am \
|
---|
| 107 | ltlib-clean.am \
|
---|
| 108 | ltlib.am \
|
---|
| 109 | ltlibrary.am \
|
---|
| 110 | mans-vars.am \
|
---|
| 111 | mans.am \
|
---|
| 112 | multilib.am \
|
---|
| 113 | program.am \
|
---|
| 114 | progs-clean.am \
|
---|
| 115 | progs.am \
|
---|
| 116 | remake-hdr.am \
|
---|
| 117 | remake.am \
|
---|
| 118 | scripts.am \
|
---|
| 119 | subdirs.am \
|
---|
| 120 | tags-clean.am \
|
---|
| 121 | tags.am \
|
---|
| 122 | texi-vers.am \
|
---|
| 123 | texinfos.am \
|
---|
| 124 |
|
---|
| 125 | INSTALLS += share-automake-exec
|
---|
| 126 | share-automake-exec_TEMPLATE = gendata
|
---|
| 127 | share-automake-exec_MODE = 755
|
---|
| 128 | share-automake-exec_INST = usr/share/automake-$(VER)/
|
---|
| 129 | share-automake-exec_SOURCES = \
|
---|
| 130 | acinstall \
|
---|
| 131 | config.guess \
|
---|
| 132 | elisp-comp \
|
---|
| 133 | install-sh \
|
---|
| 134 | mdate-sh \
|
---|
| 135 | missing \
|
---|
| 136 | mkinstalldirs \
|
---|
| 137 | ylwrap \
|
---|
| 138 |
|
---|
| 139 | #
|
---|
| 140 | # /usr/share/aclocal-x.y
|
---|
| 141 | #
|
---|
| 142 | INSTALLS += share-aclocal
|
---|
| 143 | share-aclocal_TEMPLATE = gendata
|
---|
| 144 | share-aclocal_INST = usr/share/aclocal-$(VER)/
|
---|
| 145 | share-aclocal_SOURCES = \
|
---|
| 146 | m4/ccstdc.m4 \
|
---|
| 147 | m4/cond.m4 \
|
---|
| 148 | m4/dmalloc.m4 \
|
---|
| 149 | m4/error.m4 \
|
---|
| 150 | m4/header.m4 \
|
---|
| 151 | m4/init.m4 \
|
---|
| 152 | m4/lex.m4 \
|
---|
| 153 | m4/lispdir.m4 \
|
---|
| 154 | m4/maintainer.m4 \
|
---|
| 155 | m4/missing.m4 \
|
---|
| 156 | m4/mktime.m4 \
|
---|
| 157 | m4/multi.m4 \
|
---|
| 158 | m4/obstack.m4 \
|
---|
| 159 | m4/protos.m4 \
|
---|
| 160 | m4/ptrdiff.m4 \
|
---|
| 161 | m4/regex.m4 \
|
---|
| 162 | m4/sanity.m4 \
|
---|
| 163 | m4/strtod.m4 \
|
---|
| 164 | m4/termios.m4 \
|
---|
| 165 | m4/winsz.m4 \
|
---|
| 166 | $(PATH_TARGET)/m4/amversion.m4
|
---|
| 167 |
|
---|
| 168 | $(PATH_TARGET)/m4/amversion.m4: m4/amversion.in #kNIX-bootstrap.kmk
|
---|
| 169 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
| 170 | $(call EDIT_FILE,amversion.in) $< > $@
|
---|
| 171 |
|
---|
| 172 |
|
---|
| 173 | include $(PATH_KBUILD)/footer.kmk
|
---|
| 174 |
|
---|