source: trunk/essentials/sys-devel/automake-1.7/kNIX-bootstrap.kmk@ 3141

Last change on this file since 3141 was 3138, checked in by bird, 18 years ago

Bootstrap and normal automake 1.7 config.

File size: 4.6 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.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
27DEPTH = ../../..
28include $(PATH_KBUILD)/header.kmk
29
30# HASH
31ifndef HASH
32HASH :=\#
33endif
34
35# The automake version.
36VER = 1.7
37FULL_VER = 1.7.9
38
39#
40# /usr/bin/
41#
42INSTALLS += automake-bin
43automake-bin_TEMPLATE = usr.bin
44automake-bin_SOURCES = \
45 $(PATH_TARGET)/automake-$(VER) \
46 $(PATH_TARGET)/aclocal-$(VER)
47
48# Edit function used to transform *.in and m4/*.in files.
49EDIT_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.
62define 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
68endef
69$(foreach name, aclocal automake, \
70$(eval $(def_automake-bin)))
71
72#
73# /usr/share/automake-x.y
74#
75INSTALLS += share-automake
76share-automake_TEMPLATE = gendata
77share-automake_INST = usr/share/automake-$(VER)/
78share-automake_SOURCES = \
79 lib/COPYING \
80 lib/INSTALL \
81 lib/texinfo.tex \
82 lib/ansi2knr.c \
83 lib/ansi2knr.1 \
84 lib/config.guess \
85 lib/config.sub \
86 lib/install-sh \
87 lib/mdate-sh \
88 lib/missing \
89 lib/mkinstalldirs \
90 lib/elisp-comp \
91 lib/ylwrap \
92 lib/acinstall \
93 lib/depcomp \
94 lib/compile \
95 lib/py-compile \
96 lib/config-ml.in \
97 lib/symlink-tree
98
99INSTALLS += share-automake-Automake
100share-automake-Automake_TEMPLATE = gendata
101share-automake-Automake_INST = usr/share/automake-$(VER)/Automake/
102share-automake-Automake_SOURCES = \
103 lib/Automake/Channels.pm \
104 lib/Automake/General.pm \
105 lib/Automake/Struct.pm \
106 lib/Automake/XFile.pm \
107
108INSTALLS += share-automake-am
109share-automake-am_TEMPLATE = gendata
110share-automake-am_INST = usr/share/automake-$(VER)/am/
111share-automake-am_SOURCES = \
112 lib/am/ansi2knr.am \
113 lib/am/check.am \
114 lib/am/clean-hdr.am \
115 lib/am/clean.am \
116 lib/am/compile.am \
117 lib/am/configure.am \
118 lib/am/data.am \
119 lib/am/dejagnu.am \
120 lib/am/depend.am \
121 lib/am/depend2.am \
122 lib/am/distdir.am \
123 lib/am/footer.am \
124 lib/am/header-vars.am \
125 lib/am/header.am \
126 lib/am/install.am \
127 lib/am/java.am \
128 lib/am/lang-compile.am \
129 lib/am/lex.am \
130 lib/am/library.am \
131 lib/am/libs.am \
132 lib/am/libtool.am \
133 lib/am/lisp.am \
134 lib/am/ltlib.am \
135 lib/am/ltlibrary.am \
136 lib/am/mans-vars.am \
137 lib/am/mans.am \
138 lib/am/multilib.am \
139 lib/am/program.am \
140 lib/am/progs.am \
141 lib/am/python.am \
142 lib/am/remake-hdr.am \
143 lib/am/scripts.am \
144 lib/am/subdirs.am \
145 lib/am/tags.am \
146 lib/am/texi-vers.am \
147 lib/am/texibuild.am \
148 lib/am/texinfos.am \
149 lib/am/yacc.am \
150
151#
152# /usr/share/aclocal-x.y
153#
154INSTALLS += share-aclocal
155share-aclocal_TEMPLATE = gendata
156share-aclocal_INST = usr/share/aclocal-$(VER)/
157share-aclocal_SOURCES = \
158 m4/as.m4 \
159 m4/auxdir.m4 \
160 m4/ccstdc.m4 \
161 m4/cond.m4 \
162 m4/depend.m4 \
163 m4/depout.m4 \
164 m4/dmalloc.m4 \
165 m4/gcj.m4 \
166 m4/header.m4 \
167 m4/init.m4 \
168 m4/install-sh.m4 \
169 m4/lead-dot.m4 \
170 m4/lex.m4 \
171 m4/lispdir.m4 \
172 m4/maintainer.m4 \
173 m4/make.m4 \
174 m4/minuso.m4 \
175 m4/missing.m4 \
176 m4/multi.m4 \
177 m4/obsol-gt.m4 \
178 m4/obsol-lt.m4 \
179 m4/obsolete.m4 \
180 m4/options.m4 \
181 m4/protos.m4 \
182 m4/python.m4 \
183 m4/regex.m4 \
184 m4/runlog.m4 \
185 m4/sanity.m4 \
186 m4/strip.m4 \
187 $(PATH_TARGET)/m4/amversion.m4
188
189$(PATH_TARGET)/m4/amversion.m4: m4/amversion.in kNIX-bootstrap.kmk
190 $(QUIET)$(MKDIR) -p $(@D)
191 $(call EDIT_FILE,amversion.in) $< > $@
192
193include $(PATH_KBUILD)/footer.kmk
194
Note: See TracBrowser for help on using the repository browser.