1#
2# Makefile fragment for building Makefiles
3#
4# Copyright (c) 1995-1997 Richard Coleman
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 Richard Coleman 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 Richard Coleman and the Zsh Development Group have been advised of
17# the possibility of such damage.
18#
19# Richard Coleman 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 Richard Coleman and the
23# Zsh Development Group have no obligation to provide maintenance,
24# support, updates, enhancements, or modifications.
25#
26
27config: Makefile
28	@subdirs='$(SUBDIRS)'; for subdir in $$subdirs; do \
29	  (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
30	done
31
32CONFIG_INCS = \
33$(dir_top)/Config/clean.mk $(dir_top)/Config/config.mk \
34$(dir_top)/Config/defs.mk $(dir_top)/Config/version.mk
35
36Makefile: Makefile.in $(dir_top)/config.status $(CONFIG_INCS)
37	cd $(dir_top) && \
38	  $(SHELL) ./config.status `echo $(subdir)/$@ | sed 's%^./%%'`
39
40$(dir_top)/Config/defs.mk: $(sdir_top)/Config/defs.mk.in $(dir_top)/config.status
41	cd $(dir_top) && \
42	  $(SHELL) ./config.status Config/defs.mk
43