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

Last change on this file was 3845, checked in by bird, 12 years ago

svn:eol-style: native

  • Property svn:eol-style set to native
File size: 5.2 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 <[email protected]>
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)) $$< > [email protected]
62 $(INSTALL) -m a+x,a-w [email protected] $$@
63 $(RM) -f [email protected]
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 \