summaryrefslogtreecommitdiff
path: root/scripts
Side-by-side diff
Diffstat (limited to 'scripts') (more/less context) (show whitespace changes)
-rw-r--r--scripts/lxdialog/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile
index b34bbc3..6d05cfd 100644
--- a/scripts/lxdialog/Makefile
+++ b/scripts/lxdialog/Makefile
@@ -16,6 +16,12 @@ endif
endif
endif
+ifeq ($(filter clean mrproper distclean,$(MAKECMDGOALS)),)
+ifeq ($(filter -DCURSES_LOC%,$(HOST_EXTRACFLAGS)),)
+$(error Unable to locate ncurses.h or curses.h)
+endif
+endif
+
host-progs := lxdialog
always := $(host-progs)