[3043] | 1 | # $Id: Makefile.kmk 3405 2007-06-10 23:37:40Z 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 = \
|
---|
[3336] | 36 | sys-devel/make \
|
---|
[3110] | 37 | sys-devel/flex \
|
---|
[3169] | 38 | sys-devel/m4 \
|
---|
[3153] | 39 | sys-devel/automake-1.4 \
|
---|
| 40 | sys-devel/automake-1.7 \
|
---|
| 41 | sys-devel/automake-1.8 \
|
---|
| 42 | sys-devel/automake-1.9 \
|
---|
[3169] | 43 | sys-devel/automake-wrapper \
|
---|
| 44 | sys-devel/autoconf-2.13 \
|
---|
[3153] | 45 | sys-devel/autoconf \
|
---|
[3169] | 46 | sys-devel/autoconf-wrapper \
|
---|
[3110] | 47 | sys-libs/ncurses \
|
---|
[3331] | 48 | sys-libs/zlib \
|
---|
[3065] | 49 | sys-apps/coreutils \
|
---|
| 50 | sys-apps/diffutils \
|
---|
[3185] | 51 | sys-apps/findutils \
|
---|
[3110] | 52 | sys-apps/sed \
|
---|
| 53 | sys-apps/gawk \
|
---|
| 54 | sys-apps/grep \
|
---|
[3065] | 55 | sys-apps/texinfo \
|
---|
[3331] | 56 | app-arch/bzip2 \
|
---|
[3341] | 57 | app-arch/cpio \
|
---|
[3363] | 58 | app-arch/tar \
|
---|
[3287] | 59 | app-shells/bash \
|
---|
[3405] | 60 | app-arch/gzip \
|
---|
| 61 | dev-lang/perl \
|
---|
| 62 | dev-lang/python
|
---|
[3043] | 63 |
|
---|
[3169] | 64 | # sys-devel/automake-1.10 - either it depends on libtool or it's not working here...
|
---|
| 65 |
|
---|
[3043] | 66 | ## def_do_subdir
|
---|
| 67 | # Generate rules to do one subdirectory.
|
---|
| 68 | # @remark This is evaluated twice.
|
---|
| 69 | define def_do_subdir
|
---|
| 70 |
|
---|
| 71 | # build and install
|
---|
| 72 | subdir_$(subdir)_all:
|
---|
[3109] | 73 | +$$(MAKE) -C $(subdir)
|
---|
[3043] | 74 |
|
---|
| 75 | # install
|
---|
| 76 | subdir_$(subdir)_install:
|
---|
[3109] | 77 | +$$(MAKE) -C $(subdir) install
|
---|
[3043] | 78 |
|
---|
| 79 | # packing
|
---|
| 80 | subdir_$(subdir)_packing:
|
---|
[3109] | 81 | +$$(MAKE) -C $(subdir) packing
|
---|
[3043] | 82 |
|
---|
| 83 | .NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
|
---|
| 84 | endef
|
---|
| 85 |
|
---|
| 86 | $(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
|
---|
| 87 |
|
---|
| 88 | #
|
---|
| 89 | # A pass
|
---|
| 90 | #
|
---|
| 91 | all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
|
---|
| 92 |
|
---|
| 93 | .NOTPARALLEL: all_subdirs
|
---|
| 94 |
|
---|
| 95 |
|
---|
| 96 | #
|
---|
| 97 | # The default rule.
|
---|
| 98 | #
|
---|
| 99 | all_recursive: | all_subdirs
|
---|
| 100 |
|
---|
| 101 | .NOTPARALLEL: all_recursive
|
---|
[3169] | 102 |
|
---|