summaryrefslogtreecommitdiff
path: root/Src/zsh.mdd
diff options
context:
space:
mode:
Diffstat (limited to 'Src/zsh.mdd')
-rw-r--r--Src/zsh.mdd19
1 files changed, 18 insertions, 1 deletions
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 8aef628c5..ab36ec8d7 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -33,9 +33,26 @@ init.o: bltinmods.list zshpaths.h zshxmods.h
init.o params.o parse.o: version.h
-version.h: $(sdir_top)/Config/version.mk
+# The main shell doesn't currently need zshcurses.h and zshterm.h,
+# but make sure these are built with the headers.
+# If it did need need them they would be in headers at the top instead.
+version.h: $(sdir_top)/Config/version.mk zshcurses.h zshterm.h
echo '#define ZSH_VERSION "'$(VERSION)'"' > $@
+zshcurses.h: ../config.h
+ @if test x$(ZSH_CURSES_H) != x; then \
+ echo "#include <$(ZSH_CURSES_H)>" >zshcurses.h; \
+ else \
+ echo >zshcurses.h; \
+ fi
+
+zshterm.h: ../config.h
+ @if test x$(ZSH_TERM_H) != x; then \
+ echo "#include <$(ZSH_TERM_H)>" >zshterm.h; \
+ else \
+ echo >zshterm.h; \
+ fi
+
zshpaths.h: Makemod $(CONFIG_INCS)
@echo '#define MODULE_DIR "'$(MODDIR)'"' > zshpaths.h.tmp
@if test x$(sitescriptdir) != xno; then \