1 | # $Id: kNIX-bootstrap.kmk 3160 2007-04-22 01:04:37Z bird $
|
---|
2 | ## @file
|
---|
3 | #
|
---|
4 | # kNIX Boostrap Makefile for autoconf 2.13
|
---|
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 autoconf version.
|
---|
36 | VER = 2.13
|
---|
37 |
|
---|
38 | # Edit function used to transform bin/*.in and lib/*.in files.
|
---|
39 | EDIT_FILE = $(SED) \
|
---|
40 | -e 's|@SHELL[@]|sh.exe|g' \
|
---|
41 | -e 's|^$(HASH)! */bin/sh|$(HASH)! sh.exe|g' \
|
---|
42 | -e 's|@M4[@]|m4.exe|g' \
|
---|
43 | -e 's|@AWK[@]|gawk.exe|g' \
|
---|
44 | -e 's|@PERL[@]|perl.exe|g'
|
---|
45 |
|
---|
46 | #
|
---|
47 | # /usr/bin/
|
---|
48 | #
|
---|
49 | INSTALLS += autoconf-bin
|
---|
50 | autoconf-bin_TEMPLATE = usr.bin
|
---|
51 | autoconf-bin_SOURCES = \
|
---|
52 | $(PATH_TARGET)/bin/autoconf-$(VER) \
|
---|
53 | $(PATH_TARGET)/bin/autoheader-$(VER) \
|
---|
54 | $(PATH_TARGET)/bin/autoreconf-$(VER) \
|
---|
55 | $(PATH_TARGET)/bin/autoscan-$(VER) \
|
---|
56 | $(PATH_TARGET)/bin/autoupdate-$(VER) \
|
---|
57 | $(PATH_TARGET)/bin/ifnames-$(VER)
|
---|
58 |
|
---|
59 | define def_autoconf-bin
|
---|
60 | $(PATH_TARGET)/bin/$(name)-$(VER): $(name)$(if $(eq autoscan,$(name)),.pl,.sh) #kNIX-bootstrap.kmk
|
---|
61 | $(QUIET)$(MKDIR) -p $$(@D)
|
---|
62 | $(call EDIT_FILE,$(name)) $$< > $$@.tmp
|
---|
63 | $(INSTALL) -m a+x,a-w $$@.tmp $$@
|
---|
64 | $(RM) -f $$@.tmp
|
---|
65 | endef
|
---|
66 | $(foreach name, autoconf autoheader autoreconf autoscan autoupdate ifnames, \
|
---|
67 | $(eval $(def_autoconf-bin)))
|
---|
68 |
|
---|
69 | #
|
---|
70 | # /usr/share/autoconf
|
---|
71 | #
|
---|
72 | INSTALLS += share-autoconf
|
---|
73 | share-autoconf_TEMPLATE = gendata
|
---|
74 | share-autoconf_INST = usr/share/autoconf/
|
---|
75 | share-autoconf_SOURCES = \
|
---|
76 | acconfig.h \
|
---|
77 | acfunctions \
|
---|
78 | acgeneral.m4 \
|
---|
79 | acheaders \
|
---|
80 | acidentifiers \
|
---|
81 | acmakevars \
|
---|
82 | acoldnames.m4 \
|
---|
83 | acprograms \
|
---|
84 | acspecific.m4 \
|
---|
85 | autoconf.m4 \
|
---|
86 | autoheader.m4 \
|
---|
87 |
|
---|
88 | include $(PATH_KBUILD)/footer.kmk
|
---|
89 |
|
---|