Changeset 3481 for trunk


Ignore:
Timestamp:
Jun 17, 2007, 11:27:09 PM (18 years ago)
Author:
bird
Message:

Some more bootstrap hacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/Makefile.kmk

    r3468 r3481  
    3131include $(PATH_KBUILD)/header.kmk
    3232
    33 ## SUBDIRS                                                                                     
    34 # The subdirectories to traverse depth first.
    35 SUBDIRS = \
     33## BOOTSTRAPPING_SUBDIRS                                                                                       
     34# The bootstrapping subdirectories to traverse depth first.
     35BOOTSTRAPPING_SUBDIRS = \
    3636        sys-devel/make \
    3737        sys-devel/flex \
     
    5959        app-arch/tar \
    6060        app-shells/bash \
     61
     62#       sys-devel/automake-1.10 - either it depends on libtool or it's not working here...
     63                                       
     64## NOT_BOOTSTRAPPING_SUBDIRS
     65# The not bootstrapping subdirectories to traverse depth first.
     66NOT_BOOTSTRAPPING_SUBDIRS = \
    6167        app-arch/gzip \
    62         \
    6368        dev-lang/perl \
    6469        dev-lang/python \
    6570        net-misc/wget \
    66         sys-apps/portage
    67        
     71        sys-apps/portage \
    6872
    69 #       sys-devel/automake-1.10 - either it depends on libtool or it's not working here...
    7073
    7174## def_do_subdir
     
    7679# build and install
    7780subdir_$(subdir)_all:
    78         +$$(MAKE) -C $(subdir)
     81        +$$(MAKE) -C $(subdir) $(make_extra) $(def_target)
    7982
    8083# install
    8184subdir_$(subdir)_install:
    82         +$$(MAKE) -C $(subdir) install
     85        +$$(MAKE) -C $(subdir) $(make_extra) install
    8386
    8487# packing
    8588subdir_$(subdir)_packing:
    86         +$$(MAKE) -C $(subdir) packing
     89        +$$(MAKE) -C $(subdir) $(make_extra) packing
    8790
    8891.NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing
    8992endef
    9093
    91 $(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir)))
     94def_target := all
     95make_extra :=
     96$(foreach subdir,$(BOOTSTRAPPING_SUBDIRS),$(eval $(def_do_subdir)))
     97
     98# not bootstrapping.
     99def_target := all
     100make_extra := NOT_BOOTSTRAPPING_KNIX=1
     101$(foreach subdir,$(NOT_BOOTSTRAPPING_SUBDIRS),$(eval $(def_do_subdir)))
    92102
    93103#
    94104# A pass
    95105#                       
    96 all_subdirs: | $(foreach subdir,$(SUBDIRS), subdir_$(subdir)_all)
     106all_subdirs: | $(foreach subdir,$(BOOTSTRAPPING_SUBDIRS) $(NOT_BOOTSTRAPPING_SUBDIRS), subdir_$(subdir)_all)
    97107       
    98108.NOTPARALLEL: all_subdirs
Note: See TracChangeset for help on using the changeset viewer.