DIALOG_VERSION = 1.1-20120215
DIALOG_SOURCE = ftp://dickey.his.com/dialog/dialog-$(DIALOG_VERSION).tgz
+NCURSES_HEADER = $(CLFS)/usr/include/ncurses.h
+
.PHONY: all check-root busybox dialog initrd clean distclean
all: initrd
$(TARGET)-strip $(WORK)/dialog-$(DIALOG_VERSION)/_install/usr/bin/dialog && \
touch $(WORK)/dialog-$(DIALOG_VERSION)/_install/usr/bin/dialog
-dialog: $(WORK)/dialog-$(DIALOG_VERSION)/_install/usr/bin/dialog
+dialog: $(NCURSES_HEADER) $(WORK)/dialog-$(DIALOG_VERSION)/_install/usr/bin/dialog
dialog-clean:
rm -vrf $(WORK)/dialog-$(DIALOG_VERSION)