source: trunk/essentials/Makefile.kmk@ 3468

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

Added portage. (it's kind of usable now)

  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 3468 2007-06-17 00:30:13Z bird $
2## @file
3#
4# The kNIX Essentials.
5# This is not a standard kBuild makefile, the footer is not included.
6#
7# Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
8#
9#
10# This file is part of kNIX.
11#
12# kNIX is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# kNIX is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with kNIX; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25#
26#
27
28
29
30DEPTH = ..
31include $(PATH_KBUILD)/header.kmk
32
33## SUBDIRS
34# The subdirectories to traverse depth first.
35SUBDIRS = \
36 sys-devel/make \
37 sys-devel/flex \
38 sys-devel/m4 \
39 sys-devel/automake-1.4 \
40 sys-devel/automake-1.7 \
41 sys-devel/automake-1.8 \
42 sys-devel/automake-1.9 \
43 sys-devel/automake-wrapper \
44 sys-devel/autoconf-2.13 \
45 sys-devel/autoconf \
46 sys-devel/autoconf-wrapper \
47 sys-devel/patch \
48 sys-libs/ncurses \
49 sys-libs/zlib \
50 sys-apps/coreutils \
51 sys-apps/diffutils \
52 sys-apps/findutils \
53 sys-apps/sed \
54 sys-apps/gawk \
55 sys-apps/grep \
56 sys-apps/texinfo \
57 app-arch/bzip2 \
58 app-arch/cpio \
59 app-arch/tar \
60 app-shells/bash \
61 app-arch/gzip \
62 \
63 dev-lang/perl \
64 dev-lang/python \
65 net-misc/wget \
66 sys-apps/portage
67
68
69# sys-devel/automake-1.10 - either it depends on libtool or it's not working here...
70
71## def_do_subdir
72# Generate rules to do one subdirectory.
73# @remark This is evaluated twice.
74define def_do_subdir
75
76# build and install
77subdir_$(subdir)_all:
78 +$$(MAKE) -C $(subdir)
79
80# install
81subdir_$(subdir)_install:
82 +$$(MAKE) -C $(subdir) install
83
84# packing
85subdir_$(subdir)_packing:
86 +$$(MAKE) -C $(subdir) packing
87
88.NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
89endef
90
91$(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
92
93#
94# A pass
95#
96all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
97
98.NOTPARALLEL: all_subdirs
99
100
101#
102# The default rule.
103#
104all_recursive: | all_subdirs
105
106.NOTPARALLEL: all_recursive
107
Note: See TracBrowser for help on using the repository browser.