aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:58:29 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:58:29 -0800
commit9d02772a1c2c6cd9705ba17c4ff49e9db5e3cd85 (patch)
tree7e803375c02bc604cea7bc2d0a0ee3f9e75da71a /scripts
parent4550fd734acd873360788e5e5f8265fb45f3aa84 (diff)
downloadhistory-9d02772a1c2c6cd9705ba17c4ff49e9db5e3cd85.tar.gz
[PATCH] menuconfig: fix the check for ncurses-devel
From: Sam Ravnborg <sam@ravnborg.org> Corrected check for missing ncurses-devel when executing "make menuconfig". Now tell user to install 'ncurses-devel' if check fails.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lxdialog/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile
index fe959bd22a6ad1..2f22b2f69d8cd3 100644
--- a/scripts/lxdialog/Makefile
+++ b/scripts/lxdialog/Makefile
@@ -16,15 +16,13 @@ endif
endif
host-progs := lxdialog
-always := $(host-progs)
+always := ncurses $(host-progs)
lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \
util.o lxdialog.o msgbox.o
-first_rule: ncurses
-
-.PHONY: ncurses
-ncurses:
+.PHONY: $(obj)/ncurses
+$(obj)/ncurses:
@echo "main() {}" > lxtemp.c
@if $(HOSTCC) lxtemp.c $(HOST_LOADLIBES); then \
rm -f lxtemp.c a.out; \
@@ -33,7 +31,7 @@ ncurses:
echo -e "\007" ;\
echo ">> Unable to find the Ncurses libraries." ;\
echo ">>" ;\
- echo ">> You must have Ncurses installed in order" ;\
+ echo ">> You must install ncurses-devel in order" ;\
echo ">> to use 'make menuconfig'" ;\
echo ;\
exit 1 ;\