2 # Makefile for Test subdirectory
4 # Copyright (c) 1999 Peter Stephensons
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.
33 # source/build directories
36 sdir_top
= @top_srcdir@
41 # ========== DEPENDENCIES FOR TESTING ==========
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; \
50 ZTST_srcdir
="$(sdir)" \
51 ZTST_exe
=$(dir_top
)/Src
/zsh@EXEEXT@ \
52 $(dir_top
)/Src
/zsh@EXEEXT@
+Z
-f
$(sdir
)/runtests.zsh
; then \
57 rm -rf Modules .zcompdump
; \
60 # ========== DEPENDENCIES FOR CLEANUP ==========
65 rm -rf Modules .zcompdump
*.tmp
72 # ========== DEPENDENCIES FOR MAINTENANCE ==========