1#
2# Makefile for Test subdirectory
3#
4# Copyright (c) 1999 Peter Stephensons
5# All rights reserved.
6#
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.
12#
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.
18#
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.
25#
26
27subdir = Test
28dir_top = ..
29SUBDIRS = 
30
31@VERSION_MK@
32
33# source/build directories
34VPATH           = @srcdir@
35sdir            = @srcdir@
36sdir_top        = @top_srcdir@
37INSTALL         = @INSTALL@
38
39@DEFS_MK@
40
41# ========== DEPENDENCIES FOR TESTING ==========
42
43check test:
44	if test -n "$(DLLD)"; then \
45	  cd $(dir_top) && DESTDIR= \
46	  $(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \
47	fi
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	sleep 1; \
58	rm -rf Modules .zcompdump; \
59	exit $$stat
60
61# ========== DEPENDENCIES FOR CLEANUP ==========
62
63@CLEAN_MK@
64
65mostlyclean-here:
66	rm -rf Modules .zcompdump *.tmp
67
68distclean-here:
69	rm -f Makefile
70
71realclean-here:
72
73# ========== DEPENDENCIES FOR MAINTENANCE ==========
74
75@CONFIG_MK@
76