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