summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-12-13 22:53:28 +0000
committerEric Andersen <andersen@codepoet.org>2002-12-13 22:53:28 +0000
commit068b6b07ff5dc2dbb513f444cb094197f28e64c5 (patch)
treeedc607d86023620d52e6dec7884aa3bb6c8d41fe /Makefile
parentc118f99f7379491138babcf929fe5fe30ea5c972 (diff)
Don't build the ncurses stuff unless it is specifically asked for
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 9a87ad4bd..58e397cfd 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ DIRS:=applets archival archival/libunarchive console-tools debianutils \
networking/libiproute networking/udhcp procps loginutils shell \
shellutils sysklogd textutils util-linux libbb libpwdgrp
-ifdef include_config
+ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
all: busybox busybox.links #doc
@@ -142,7 +142,7 @@ include/config/MARKER: depend scripts/split-include
include/config.h: .config
@if [ ! -x ./scripts/config/conf ] ; then \
- make -C scripts/config; \
+ make -C scripts/config conf; \
fi;
@./scripts/config/conf -o sysdeps/$(TARGET_OS)/Config.in
@@ -154,18 +154,20 @@ finished2:
@echo Finished installing...
@echo
-else # ifdef include_config
+else # ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
all: menuconfig
-ifeq ($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
-# Targets which don't need .config
-
# configuration
# ---------------------------------------------------------------------------
-scripts/config/conf scripts/config/mconf:
- make -C scripts/config
+scripts/config/conf:
+ make -C scripts/config conf
+ -@if [ ! -f .config ] ; then \
+ cp sysdeps/$(TARGET_OS)/defconfig .config; \
+ fi
+scripts/config/mconf:
+ make -C scripts/config ncurses conf mconf
-@if [ ! -f .config ] ; then \
cp sysdeps/$(TARGET_OS)/defconfig .config; \
fi
@@ -239,8 +241,7 @@ tags:
ctags -R .
-endif # ifeq ($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
-endif # ifdef include_config
+endif # ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
.PHONY: dummy subdirs release distclean clean config oldconfig \
menuconfig tags check test tests depend