| 1 | # $Id: kNIX-bootstrap.kmk 3116 2007-04-15 18:41:33Z bird $ | 
|---|
| 2 | ## @file | 
|---|
| 3 | # | 
|---|
| 4 | # kNIX Boostrap Makefile for automake 1.7 | 
|---|
| 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.7 | 
|---|
| 37 | FULL_VER = 1.7.9 | 
|---|
| 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|@SHELL[@]|sh.exe|g' \ | 
|---|
| 51 | -e 's|@PERL[@]|perl.exe|g' \ | 
|---|
| 52 | -e 's|@TAR[@]|tar.exe|g' \ | 
|---|
| 53 | -e 's|@prefix[@]|/usr|g' \ | 
|---|
| 54 | -e 's|@datadir[@]|/usr/share|g' \ | 
|---|
| 55 | -e 's|@VERSION[@]|$(FULL_VER)|g' \ | 
|---|
| 56 | -e 's|@APIVERSION[@]|$(VER)|g' \ | 
|---|
| 57 | -e 's|@PACKAGE[@]|automake|g' \ | 
|---|
| 58 | -e 's|@PACKAGE_NAME[@]|GNU Automake|g' \ | 
|---|
| 59 | -e 's|@configure_input[@]|$(basename $1). Generated from $1 by kBuild.|g' \ | 
|---|
| 60 |  | 
|---|
| 61 | # The file edit rules. | 
|---|
| 62 | define def_automake-bin | 
|---|
| 63 | $(PATH_TARGET)/$(name)-$(VER): $(name).in kNIX-bootstrap.kmk | 
|---|
| 64 | $(QUIET)$(MKDIR) -p $$(@D) | 
|---|
| 65 | $(call EDIT_FILE,$(name)) $$< > $$@.tmp | 
|---|
| 66 | $(INSTALL) -m a+x,a-w $$@.tmp $$@ | 
|---|
| 67 | $(RM) -f $$@.tmp | 
|---|
| 68 | endef | 
|---|
| 69 | $(foreach name, aclocal automake, \ | 
|---|
| 70 | $(eval $(def_automake-bin))) | 
|---|
| 71 |  | 
|---|
| 72 | # | 
|---|
| 73 | # /usr/share/automake-x.y | 
|---|
| 74 | # | 
|---|
| 75 | INSTALLS += share-automake | 
|---|
| 76 | share-automake_TEMPLATE = gendata | 
|---|
| 77 | share-automake_INST = usr/share/automake-$(VER)/ | 
|---|
| 78 | share-automake_SOURCES = \ | 
|---|
| 79 | lib/COPYING \ | 
|---|
| 80 | lib/INSTALL \ | 
|---|
| 81 | lib/texinfo.tex \ | 
|---|
| 82 | lib/ansi2knr.c \ | 
|---|
| 83 | lib/ansi2knr.1 \ | 
|---|
| 84 |  | 
|---|
| 85 | INSTALLS += share-automake-exec | 
|---|
| 86 | share-automake-exec_TEMPLATE = gendata | 
|---|
| 87 | share-automake-exec_INST = usr/share/automake-$(VER)/ | 
|---|
| 88 | share-automake-exec_MODE = 755 | 
|---|
| 89 | share-automake-exec_SOURCES = \ | 
|---|
| 90 | lib/config.guess \ | 
|---|
| 91 | lib/config.sub \ | 
|---|
| 92 | lib/install-sh \ | 
|---|
| 93 | lib/mdate-sh \ | 
|---|
| 94 | lib/missing \ | 
|---|
| 95 | lib/mkinstalldirs \ | 
|---|
| 96 | lib/elisp-comp \ | 
|---|
| 97 | lib/ylwrap \ | 
|---|
| 98 | lib/acinstall \ | 
|---|
| 99 | lib/depcomp \ | 
|---|
| 100 | lib/compile \ | 
|---|
| 101 | lib/py-compile \ | 
|---|
| 102 | lib/symlink-tree \ | 
|---|
| 103 |  | 
|---|
| 104 | INSTALLS += share-automake-Automake | 
|---|
| 105 | share-automake-Automake_TEMPLATE = gendata | 
|---|
| 106 | share-automake-Automake_INST = usr/share/automake-$(VER)/Automake/ | 
|---|
| 107 | share-automake-Automake_SOURCES = \ | 
|---|
| 108 | lib/Automake/Channels.pm \ | 
|---|
| 109 | lib/Automake/General.pm \ | 
|---|
| 110 | lib/Automake/Struct.pm \ | 
|---|
| 111 | lib/Automake/XFile.pm \ | 
|---|
| 112 |  | 
|---|
| 113 | INSTALLS += share-automake-am | 
|---|
| 114 | share-automake-am_TEMPLATE = gendata | 
|---|
| 115 | share-automake-am_INST = usr/share/automake-$(VER)/am/ | 
|---|
| 116 | share-automake-am_SOURCES = \ | 
|---|
| 117 | lib/am/ansi2knr.am \ | 
|---|
| 118 | lib/am/check.am \ | 
|---|
| 119 | lib/am/clean-hdr.am \ | 
|---|
| 120 | lib/am/clean.am \ | 
|---|
| 121 | lib/am/compile.am \ | 
|---|
| 122 | lib/am/configure.am \ | 
|---|
| 123 | lib/am/data.am \ | 
|---|
| 124 | lib/am/dejagnu.am \ | 
|---|
| 125 | lib/am/depend.am \ | 
|---|
| 126 | lib/am/depend2.am \ | 
|---|
| 127 | lib/am/distdir.am \ | 
|---|
| 128 | lib/am/footer.am \ | 
|---|
| 129 | lib/am/header-vars.am \ | 
|---|
| 130 | lib/am/header.am \ | 
|---|
| 131 | lib/am/install.am \ | 
|---|
| 132 | lib/am/java.am \ | 
|---|
| 133 | lib/am/lang-compile.am \ | 
|---|
| 134 | lib/am/lex.am \ | 
|---|
| 135 | lib/am/library.am \ | 
|---|
| 136 | lib/am/libs.am \ | 
|---|
| 137 | lib/am/libtool.am \ | 
|---|
| 138 | lib/am/lisp.am \ | 
|---|
| 139 | lib/am/ltlib.am \ | 
|---|
| 140 | lib/am/ltlibrary.am \ | 
|---|
| 141 | lib/am/mans-vars.am \ | 
|---|
| 142 | lib/am/mans.am \ | 
|---|
| 143 | lib/am/multilib.am \ | 
|---|
| 144 | lib/am/program.am \ | 
|---|
| 145 | lib/am/progs.am \ | 
|---|
| 146 | lib/am/python.am \ | 
|---|
| 147 | lib/am/remake-hdr.am \ | 
|---|
| 148 | lib/am/scripts.am \ | 
|---|
| 149 | lib/am/subdirs.am \ | 
|---|
| 150 | lib/am/tags.am \ | 
|---|
| 151 | lib/am/texi-vers.am \ | 
|---|
| 152 | lib/am/texibuild.am \ | 
|---|
| 153 | lib/am/texinfos.am \ | 
|---|
| 154 | lib/am/yacc.am \ | 
|---|
| 155 |  | 
|---|
| 156 | # | 
|---|
| 157 | # /usr/share/aclocal-x.y | 
|---|
| 158 | # | 
|---|
| 159 | INSTALLS += share-aclocal | 
|---|
| 160 | share-aclocal_TEMPLATE = gendata | 
|---|
| 161 | share-aclocal_INST = usr/share/aclocal-$(VER)/ | 
|---|
| 162 | share-aclocal_SOURCES = \ | 
|---|
| 163 | m4/as.m4 \ | 
|---|
| 164 | m4/auxdir.m4 \ | 
|---|
| 165 | m4/ccstdc.m4 \ | 
|---|
| 166 | m4/cond.m4 \ | 
|---|
| 167 | m4/depend.m4 \ | 
|---|
| 168 | m4/depout.m4 \ | 
|---|
| 169 | m4/dmalloc.m4 \ | 
|---|
| 170 | m4/gcj.m4 \ | 
|---|
| 171 | m4/header.m4 \ | 
|---|
| 172 | m4/init.m4 \ | 
|---|
| 173 | m4/install-sh.m4 \ | 
|---|
| 174 | m4/lead-dot.m4 \ | 
|---|
| 175 | m4/lex.m4 \ | 
|---|
| 176 | m4/lispdir.m4 \ | 
|---|
| 177 | m4/maintainer.m4 \ | 
|---|
| 178 | m4/make.m4 \ | 
|---|
| 179 | m4/minuso.m4 \ | 
|---|
| 180 | m4/missing.m4 \ | 
|---|
| 181 | m4/multi.m4 \ | 
|---|
| 182 | m4/obsol-gt.m4 \ | 
|---|
| 183 | m4/obsol-lt.m4 \ | 
|---|
| 184 | m4/obsolete.m4 \ | 
|---|
| 185 | m4/options.m4 \ | 
|---|
| 186 | m4/protos.m4 \ | 
|---|
| 187 | m4/python.m4 \ | 
|---|
| 188 | m4/regex.m4 \ | 
|---|
| 189 | m4/runlog.m4 \ | 
|---|
| 190 | m4/sanity.m4 \ | 
|---|
| 191 | m4/strip.m4 \ | 
|---|
| 192 | $(PATH_TARGET)/m4/amversion.m4 | 
|---|
| 193 |  | 
|---|
| 194 | $(PATH_TARGET)/m4/amversion.m4: m4/amversion.in kNIX-bootstrap.kmk | 
|---|
| 195 | $(QUIET)$(MKDIR) -p $(@D) | 
|---|
| 196 | $(call EDIT_FILE,amversion.in) $< > $@ | 
|---|
| 197 |  | 
|---|
| 198 | include $(PATH_KBUILD)/footer.kmk | 
|---|
| 199 |  | 
|---|