1# 2# Makefile fragment for cleanup 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 27mostlyclean: mostlyclean-recursive mostlyclean-here 28clean: clean-recursive clean-here 29distclean: distclean-recursive distclean-here 30realclean: realclean-recursive realclean-here 31 32mostlyclean-here: 33clean-here: mostlyclean-here 34distclean-here: clean-here 35realclean-here: distclean-here 36 37mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive: 38 @subdirs='$(SUBDIRS)'; if test -n "$$subdirs"; then \ 39 target=`echo $@ | sed s/-recursive//`; \ 40 for subdir in $$subdirs; do \ 41 (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \ 42 done; \ 43 fi 44