- Timestamp:
- Jun 17, 2007, 11:27:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/Makefile.kmk
r3468 r3481 31 31 include $(PATH_KBUILD)/header.kmk 32 32 33 ## SUBDIRS34 # The subdirectories to traverse depth first.35 SUBDIRS = \33 ## BOOTSTRAPPING_SUBDIRS 34 # The bootstrapping subdirectories to traverse depth first. 35 BOOTSTRAPPING_SUBDIRS = \ 36 36 sys-devel/make \ 37 37 sys-devel/flex \ … … 59 59 app-arch/tar \ 60 60 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. 66 NOT_BOOTSTRAPPING_SUBDIRS = \ 61 67 app-arch/gzip \ 62 \63 68 dev-lang/perl \ 64 69 dev-lang/python \ 65 70 net-misc/wget \ 66 sys-apps/portage 67 71 sys-apps/portage \ 68 72 69 # sys-devel/automake-1.10 - either it depends on libtool or it's not working here...70 73 71 74 ## def_do_subdir … … 76 79 # build and install 77 80 subdir_$(subdir)_all: 78 +$$(MAKE) -C $(subdir) 81 +$$(MAKE) -C $(subdir) $(make_extra) $(def_target) 79 82 80 83 # install 81 84 subdir_$(subdir)_install: 82 +$$(MAKE) -C $(subdir) install85 +$$(MAKE) -C $(subdir) $(make_extra) install 83 86 84 87 # packing 85 88 subdir_$(subdir)_packing: 86 +$$(MAKE) -C $(subdir) packing89 +$$(MAKE) -C $(subdir) $(make_extra) packing 87 90 88 91 .NOTPARALLEL: subdir_$(subdir)_all subdir_$(subdir)_install subdir_$(subdir)_packing 89 92 endef 90 93 91 $(foreach subdir,$(SUBDIRS),$(eval $(def_do_subdir))) 94 def_target := all 95 make_extra := 96 $(foreach subdir,$(BOOTSTRAPPING_SUBDIRS),$(eval $(def_do_subdir))) 97 98 # not bootstrapping. 99 def_target := all 100 make_extra := NOT_BOOTSTRAPPING_KNIX=1 101 $(foreach subdir,$(NOT_BOOTSTRAPPING_SUBDIRS),$(eval $(def_do_subdir))) 92 102 93 103 # 94 104 # A pass 95 105 # 96 all_subdirs: | $(foreach subdir,$( SUBDIRS), subdir_$(subdir)_all)106 all_subdirs: | $(foreach subdir,$(BOOTSTRAPPING_SUBDIRS) $(NOT_BOOTSTRAPPING_SUBDIRS), subdir_$(subdir)_all) 97 107 98 108 .NOTPARALLEL: all_subdirs
Note:
See TracChangeset
for help on using the changeset viewer.