26763: fix problem on failed cd -s to relative path
[zsh.git] / Test / Makefile.in
blobf82516582ff315de458b5013caa14c9f8f03f9ac
2 # Makefile for Test subdirectory
4 # Copyright (c) 1999 Peter Stephensons
5 # All rights reserved.
7 # Permission is hereby granted, without written agreement and without
8 # license or royalty fees, to use, copy, modify, and distribute this
9 # software and to distribute modified versions of this software for any
10 # purpose, provided that the above copyright notice and the following
11 # two paragraphs appear in all copies of this software.
13 # In no event shall Peter Stephenson or the Zsh Development Group be liable
14 # to any party for direct, indirect, special, incidental, or consequential
15 # damages arising out of the use of this software and its documentation,
16 # even if Peter Stephenson and the Zsh Development Group have been advised of
17 # the possibility of such damage.
19 # Peter Stephenson and the Zsh Development Group specifically disclaim any
20 # warranties, including, but not limited to, the implied warranties of
21 # merchantability and fitness for a particular purpose. The software
22 # provided hereunder is on an "as is" basis, and Peter Stephenson and the
23 # Zsh Development Group have no obligation to provide maintenance,
24 # support, updates, enhancements, or modifications.
27 subdir = Test
28 dir_top = ..
29 SUBDIRS =
31 @VERSION_MK@
33 # source/build directories
34 VPATH = @srcdir@
35 sdir = @srcdir@
36 sdir_top = @top_srcdir@
37 INSTALL = @INSTALL@
39 @DEFS_MK@
41 # ========== DEPENDENCIES FOR TESTING ==========
43 check test:
44 if test -n "$(DLLD)"; then \
45 cd $(dir_top) && DESTDIR= \
46 $(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
48 if ZTST_testlist="`for f in $(sdir)/$(TESTNUM)*.ztst; \
49 do echo $$f; done`" \
50 ZTST_srcdir="$(sdir)" \
51 ZTST_exe=$(dir_top)/Src/zsh@EXEEXT@ \
52 $(dir_top)/Src/zsh@EXEEXT@ +Z -f $(sdir)/runtests.zsh; then \
53 stat=0; \
54 else \
55 stat=1; \
56 fi; \
57 rm -rf Modules .zcompdump; \
58 exit $$stat
60 # ========== DEPENDENCIES FOR CLEANUP ==========
62 @CLEAN_MK@
64 mostlyclean-here:
65 rm -rf Modules .zcompdump *.tmp
67 distclean-here:
68 rm -f Makefile
70 realclean-here:
72 # ========== DEPENDENCIES FOR MAINTENANCE ==========
74 @CONFIG_MK@