source: trunk/essentials/Makefile.kmk@ 3136

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

some more.

  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Makefile.kmk 3110 2007-04-15 15:59:44Z 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/flex \
37 sys-libs/ncurses \
38 sys-apps/coreutils \
39 sys-apps/diffutils \
40 sys-apps/sed \
41 sys-apps/gawk \
42 sys-apps/grep \
43 sys-apps/texinfo \
44
45## def_do_subdir
46# Generate rules to do one subdirectory.
47# @remark This is evaluated twice.
48define def_do_subdir
49
50# build and install
51subdir_$(subdir)_all:
52 +$$(MAKE) -C $(subdir)
53
54# install
55subdir_$(subdir)_install:
56 +$$(MAKE) -C $(subdir) install
57
58# packing
59subdir_$(subdir)_packing:
60 +$$(MAKE) -C $(subdir) packing
61
62.NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
63endef
64
65$(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
66
67#
68# A pass
69#
70all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
71
72.NOTPARALLEL: all_subdirs
73
74
75#
76# The default rule.
77#
78all_recursive: | all_subdirs
79
80.NOTPARALLEL: all_recursive
81
Note: See TracBrowser for help on using the repository browser.