source: trunk/Makefile.kmk@ 3722

Last change on this file since 3722 was 3646, checked in by bird, 17 years ago

Grep.

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Makefile.kmk 3646 2008-05-18 23:42:56Z bird $
2## @file
3#
4# Top-Level Makefile.
5# This is not a standard kBuild makefile, the footer is not included.
6#
7# Copyright (c) 2005-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.
35# (This is bootstrap order.)
36SUBDIRS = \
37 baselayout \
38 essentials/app-arch/gzip \
39 essentials/sys-apps/gawk \
40 essentials/sys-apps/diffutils \
41 yacc \
42 bsdmisc \
43 essentials/sys-apps/coreutils \
44 essentials/sys-apps/sed \
45 essentials/sys-devel/flex \
46 essentials/sys-devel/m4 \
47 essentials/sys-apps/grep \
48 ash \
49 essentials
50
51## Skip these for now:
52# libc \
53# emx \
54
55## @todo
56# binutils \
57# gcc \
58
59## def_do_subdir
60# Generate rules to do one subdirectory.
61# @remark This is evaluated twice.
62define def_do_subdir
63
64# build and install
65subdir_$(subdir)_all:
66 +$$(MAKE) -C $(subdir)
67
68# install
69subdir_$(subdir)_install:
70 +$$(MAKE) -C $(subdir) install
71
72# packing
73subdir_$(subdir)_packing:
74 +$$(MAKE) -C $(subdir) packing
75
76.NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
77endef
78
79$(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
80
81#
82# A pass
83#
84all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
85
86.NOTPARALLEL: all_subdirs
87
88
89#
90# The default rule.
91#
92all_recursive: | all_subdirs
93
94.NOTPARALLEL: all_recursive
95
Note: See TracBrowser for help on using the repository browser.