source: trunk/essentials/sys-devel/automake-1.8/kNIX-bootstrap.kmk@ 3275

Last change on this file since 3275 was 3151, checked in by bird, 18 years ago

seems they should be executable after all...

File size: 5.4 KB
Line 
1# $Id: kNIX-bootstrap.kmk 3116 2007-04-15 18:41:33Z bird $
2## @file
3#
4# kNIX Boostrap Makefile for automake 1.8
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
27DEPTH = ../../..
28include $(PATH_KBUILD)/header.kmk
29
30# The automake version.
31VER = 1.8
32FULL_VER = 1.8.5
33
34# Edit function used to transform *.in, m4/*.in and lib/Automake/*.in files.
35EDIT_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#
51INSTALLS += automake-bin
52automake-bin_TEMPLATE = usr.bin
53automake-bin_SOURCES = \
54 $(PATH_TARGET)/automake-$(VER) \
55 $(PATH_TARGET)/aclocal-$(VER)
56
57# The file edit rules.
58define 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
64endef
65$(foreach name, aclocal automake, \
66$(eval $(def_automake-bin)))
67
68#
69# /usr/share/automake-x.y
70#
71INSTALLS += share-automake
72share-automake_TEMPLATE = gendata
73share-automake_INST = usr/share/automake-$(VER)/
74share-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
82INSTALLS += share-automake-exec
83share-automake-exec_TEMPLATE = gendata
84share-automake-exec_INST = usr/share/automake-$(VER)/
85share-automake-exec_INST = 755
86share-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
101INSTALLS += share-automake-Automake
102share-automake-Automake_TEMPLATE = gendata
103share-automake-Automake_INST = usr/share/automake-$(VER)/Automake/
104share-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
130INSTALLS += share-automake-am
131share-automake-am_TEMPLATE = gendata
132share-automake-am_INST = usr/share/automake-$(VER)/am/
133share-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/java.am \
150 lib/am/lang-compile.am \
151 lib/am/lex.am \
152 lib/am/library.am \
153 lib/am/libs.am \
154 lib/am/libtool.am \
155 lib/am/lisp.am \
156 lib/am/ltlib.am \
157 lib/am/ltlibrary.am \
158 lib/am/mans-vars.am \
159 lib/am/mans.am \
160 lib/am/multilib.am \
161 lib/am/program.am \
162 lib/am/progs.am \
163 lib/am/python.am \
164 lib/am/remake-hdr.am \
165 lib/am/scripts.am \
166 lib/am/subdirs.am \
167 lib/am/tags.am \
168 lib/am/texi-vers.am \
169 lib/am/texibuild.am \
170 lib/am/texinfos.am \
171 lib/am/yacc.am \
172
173#
174# /usr/share/aclocal-x.y
175#
176INSTALLS += share-aclocal
177share-aclocal_TEMPLATE = gendata
178share-aclocal_INST = usr/share/aclocal-$(VER)/
179share-aclocal_SOURCES = \
180 m4/as.m4 \
181 m4/auxdir.m4 \
182 m4/ccstdc.m4 \
183 m4/cond.m4 \
184 m4/depend.m4 \
185 m4/depout.m4 \
186 m4/dmalloc.m4 \
187 m4/gcj.m4 \
188 m4/header.m4 \
189 m4/init.m4 \
190 m4/install-sh.m4 \
191 m4/lead-dot.m4 \
192 m4/lex.m4 \
193 m4/lispdir.m4 \
194 m4/maintainer.m4 \
195 m4/make.m4 \
196 m4/minuso.m4 \
197 m4/missing.m4 \
198 m4/mkdirp.m4 \
199 m4/multi.m4 \
200 m4/obsol-gt.m4 \
201 m4/obsol-lt.m4 \
202 m4/obsolete.m4 \
203 m4/options.m4 \
204 m4/protos.m4 \
205 m4/python.m4 \
206 m4/regex.m4 \
207 m4/runlog.m4 \
208 m4/sanity.m4 \
209 m4/strip.m4 \
210 $(PATH_TARGET)/m4/amversion.m4
211
212
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
218include $(PATH_KBUILD)/footer.kmk
219
Note: See TracBrowser for help on using the repository browser.