[3043] | 1 | # $Id: Makefile.kmk 3153 2007-04-16 02:23:34Z 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 |
|
---|
| 30 | DEPTH = ..
|
---|
| 31 | include $(PATH_KBUILD)/header.kmk
|
---|
| 32 |
|
---|
| 33 | ## SUBDIRS
|
---|
| 34 | # The subdirectories to traverse depth first.
|
---|
| 35 | SUBDIRS = \
|
---|
[3110] | 36 | sys-devel/flex \
|
---|
[3153] | 37 | sys-devel/automake-1.4 \
|
---|
| 38 | sys-devel/automake-1.7 \
|
---|
| 39 | sys-devel/automake-1.8 \
|
---|
| 40 | sys-devel/automake-1.9 \
|
---|
| 41 | sys-devel/automake-1.10 \
|
---|
| 42 | sys-devel/autoconf \
|
---|
[3110] | 43 | sys-libs/ncurses \
|
---|
[3065] | 44 | sys-apps/coreutils \
|
---|
| 45 | sys-apps/diffutils \
|
---|
[3110] | 46 | sys-apps/sed \
|
---|
| 47 | sys-apps/gawk \
|
---|
| 48 | sys-apps/grep \
|
---|
[3065] | 49 | sys-apps/texinfo \
|
---|
[3153] | 50 |
|
---|
| 51 | ## @todo sys-devel/autoconf-2.13
|
---|
| 52 | ## @todo sys-devel/autoconf-wrapper
|
---|
| 53 | ## @todo sys-devel/automake-wrapper
|
---|
[3043] | 54 |
|
---|
| 55 | ## def_do_subdir
|
---|
| 56 | # Generate rules to do one subdirectory.
|
---|
| 57 | # @remark This is evaluated twice.
|
---|
| 58 | define def_do_subdir
|
---|
| 59 |
|
---|
| 60 | # build and install
|
---|
| 61 | subdir_$(subdir)_all:
|
---|
[3109] | 62 | +$$(MAKE) -C $(subdir)
|
---|
[3043] | 63 |
|
---|
| 64 | # install
|
---|
| 65 | subdir_$(subdir)_install:
|
---|
[3109] | 66 | +$$(MAKE) -C $(subdir) install
|
---|
[3043] | 67 |
|
---|
| 68 | # packing
|
---|
| 69 | subdir_$(subdir)_packing:
|
---|
[3109] | 70 | +$$(MAKE) -C $(subdir) packing
|
---|
[3043] | 71 |
|
---|
| 72 | .NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
|
---|
| 73 | endef
|
---|
| 74 |
|
---|
| 75 | $(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
|
---|
| 76 |
|
---|
| 77 | #
|
---|
| 78 | # A pass
|
---|
| 79 | #
|
---|
| 80 | all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
|
---|
| 81 |
|
---|
| 82 | .NOTPARALLEL: all_subdirs
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 | #
|
---|
| 86 | # The default rule.
|
---|
| 87 | #
|
---|
| 88 | all_recursive: | all_subdirs
|
---|
| 89 |
|
---|
| 90 | .NOTPARALLEL: all_recursive
|
---|
| 91 |
|
---|