aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 187f3fcd6..757c41b18 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ endif
37export srctree=$(top_srcdir) 37export srctree=$(top_srcdir)
38vpath %/Config.in $(srctree) 38vpath %/Config.in $(srctree)
39 39
40include $(top_builddir)/Rules.mak 40include $(top_srcdir)/Rules.mak
41 41
42DIRS:=applets archival archival/libunarchive coreutils console-tools \ 42DIRS:=applets archival archival/libunarchive coreutils console-tools \
43 debianutils editors findutils init miscutils modutils networking \ 43 debianutils editors findutils init miscutils modutils networking \
@@ -115,7 +115,7 @@ all: busybox busybox.links doc
115all_tree: $(ALL_MAKEFILES) 115all_tree: $(ALL_MAKEFILES)
116 116
117$(ALL_MAKEFILES): %/Makefile: $(top_srcdir)/%/Makefile 117$(ALL_MAKEFILES): %/Makefile: $(top_srcdir)/%/Makefile
118 d=`dirname $@`; [ -d "$$d" ] || mkdir -p "$$d"; cp $< $@ 118 [ -d $(@D) ] || mkdir -p $(@D); cp $< $@
119 119
120# In this section, we need .config 120# In this section, we need .config
121-include $(top_builddir)/.config.cmd 121-include $(top_builddir)/.config.cmd
@@ -219,7 +219,8 @@ include/bb_config.h: include/config.h
219 echo "#endif" >> $@ 219 echo "#endif" >> $@
220 220
221include/bbconfigopts.h: .config 221include/bbconfigopts.h: .config
222 scripts/config/mkconfigs >include/bbconfigopts.h 222 @[ -d $(@D) ] || mkdir -v $(@D)
223 $(top_srcdir)/scripts/config/mkconfigs >include/bbconfigopts.h
223 224
224finished2: 225finished2:
225 $(SECHO) 226 $(SECHO)
@@ -233,16 +234,13 @@ all: menuconfig
233# configuration 234# configuration
234# --------------------------------------------------------------------------- 235# ---------------------------------------------------------------------------
235 236
236$(ALL_MAKEFILES): %/Makefile: $(top_srcdir)/%/Makefile 237scripts/config/conf: scripts/config/Makefile $(top_srcdir)/Rules.mak
237 d=`dirname $@`; [ -d "$$d" ] || mkdir -p "$$d"; cp $< $@
238
239scripts/config/conf: scripts/config/Makefile Rules.mak
240 $(MAKE) -C scripts/config conf 238 $(MAKE) -C scripts/config conf
241 -@if [ ! -f .config ] ; then \ 239 -@if [ ! -f .config ] ; then \
242 cp $(CONFIG_DEFCONFIG) .config; \ 240 cp $(CONFIG_DEFCONFIG) .config; \
243 fi 241 fi
244 242
245scripts/config/mconf: scripts/config/Makefile Rules.mak 243scripts/config/mconf: scripts/config/Makefile $(top_srcdir)/Rules.mak
246 $(MAKE) -C scripts/config ncurses conf mconf 244 $(MAKE) -C scripts/config ncurses conf mconf
247 -@if [ ! -f .config ] ; then \ 245 -@if [ ! -f .config ] ; then \
248 cp $(CONFIG_DEFCONFIG) .config; \ 246 cp $(CONFIG_DEFCONFIG) .config; \