diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-04-05 08:54:04 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-04-05 08:54:04 +0000 |
commit | ff53f1cfb6a7a513f39603ff14e0656f228927f1 (patch) | |
tree | a9a0cd182fac3d13a943aee32a218fa3c77c8790 | |
parent | db663c824a1b7167618c41d72b0c25a69b7ee91c (diff) | |
download | zsh-ff53f1cfb6a7a513f39603ff14e0656f228927f1.tar.gz zsh-ff53f1cfb6a7a513f39603ff14e0656f228927f1.tar.xz zsh-ff53f1cfb6a7a513f39603ff14e0656f228927f1.zip |
Make config.h and related dependencies relative to $(sdir).
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile.in | 67 |
2 files changed, 53 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog index 4e07e3f38..d45bfa695 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-04-05 Bart Schaefer <schaefer@zsh.org> + + * 10499: Makefile.in: Dependencies relative to $(sdir). + 2000-04-05 Sven Wischnowsky <wischnow@informatik.hu-berlin.de> * 10500: Doc/Zsh/zle.yo, Functions/Zle/incremental-complete-word, diff --git a/Makefile.in b/Makefile.in index c91ddcf56..e8ac7d7b7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -26,10 +26,17 @@ subdir = . dir_top = . -SUBDIRS = Doc Etc Src +SUBDIRS = Doc Etc Src Test -@@version.mk@@ -@@defs.mk@@ +@VERSION_MK@ + +# source/build directories +VPATH = @srcdir@ +sdir = @srcdir@ +sdir_top = @top_srcdir@ +INSTALL = @INSTALL@ + +@DEFS_MK@ # ========== DEPENDENCIES FOR BUILDING ========== @@ -39,9 +46,6 @@ all: config.h (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \ done -check test: - @echo zsh test suite not available yet - # prepare module configuration prep: @cd Src && $(MAKE) $(MAKEDEFS) $@ @@ -51,9 +55,13 @@ META-FAQ: FORCE # ========== DEPENDENCIES FOR INSTALLING ========== -# install/uninstall everything -install: install.bin install.modules install.man install.info -uninstall: uninstall.bin uninstall.modules uninstall.man uninstall.info +# install stripped +install-strip: + $(MAKE) install STRIPFLAGS="-s" + +# install/uninstall most things +install: install.bin install.modules install.man install.fns +uninstall: uninstall.bin uninstall.modules uninstall.man uninstall.fns # install/uninstall just the binary install.bin uninstall.bin: @@ -67,41 +75,64 @@ install.modules uninstall.modules: install.man uninstall.man: @cd Doc && $(MAKE) $(MAKEDEFS) $@ +# install/uninstall just the shell functions +install.fns: + test x$(sitefndir) != xno && $(sdir_top)/mkinstalldirs $(DESTDIR)$(sitefndir) + @cd Completion && $(MAKE) $(MAKEDEFS) $@ + @cd Functions && $(MAKE) $(MAKEDEFS) $@ + +uninstall.fns: + # never attempt to remove $(sitefndir) + @cd Completion && $(MAKE) $(MAKEDEFS) $@ + @cd Functions && $(MAKE) $(MAKEDEFS) $@ + # install/uninstall just the info pages install.info uninstall.info: @cd Doc && $(MAKE) $(MAKEDEFS) $@ +# install/uninstall just the HTML manual +install.html uninstall.html: + @cd Doc && $(MAKE) $(MAKEDEFS) $@ + +# ========== DEPENDENCIES FOR TESTING ========== +check test: + cd Test ; $(MAKE) check + # ========== DEPENDENCIES FOR CLEANUP ========== -@@clean.mk@@ +@CLEAN_MK@ distclean-here: - rm -f Makefile config.h config.status config.log config.cache stamp-h + @cd Completion && $(MAKE) $(MAKEDEFS) $@ + @cd Functions && $(MAKE) $(MAKEDEFS) $@ + @cd Test && $(MAKE) $(MAKEDEFS) $@ + rm -f Makefile config.h config.status config.log config.cache stamp-h Config/defs.mk realclean-here: cd $(sdir) && rm -f config.h.in stamp-h.in configure # ========== DEPENDENCIES FOR MAINTENANCE ========== -@@config.mk@@ +@CONFIG_MK@ config: config.h -config.status: configure +config.status: $(sdir)/configure ./config.status --recheck -configure: configure.in aclocal.m4 aczsh.m4 +$(sdir)/configure: $(sdir)/configure.in $(sdir)/aclocal.m4 $(sdir)/aczsh.m4 cd $(sdir) && autoconf config.h: stamp-h -stamp-h: config.h.in config.status +stamp-h: $(sdir)/config.h.in config.status cd $(dir_top) && \ CONFIG_FILES= CONFIG_HEADERS=$(subdir)/config.h ./config.status -config.h.in: stamp-h.in -stamp-h.in: configure.in acconfig.h aclocal.m4 aczsh.m4 +$(sdir)/config.h.in: $(sdir)/stamp-h.in +$(sdir)/stamp-h.in: $(sdir)/configure.in $(sdir)/acconfig.h \ + $(sdir)/aclocal.m4 $(sdir)/aczsh.m4 cd $(sdir) && autoheader - echo > $@ + echo > $(sdir)/stamp-h.in # ========== DEPENDENCIES FOR DISTRIBUTION ========== |