1#ident @(#)rules1.dir	1.18 21/04/28
2###########################################################################
3# Written 1996 by J. Schilling
4###########################################################################
5#
6# DIRS contains the names of all directories where sub make should take place
7#
8# The code that is shared between rules.dir and rules.rdi
9#
10###########################################################################
11# Copyright (c) J. Schilling
12###########################################################################
13# The contents of this file are subject to the terms of the
14# Common Development and Distribution License, Version 1.0 only
15# (the "License").  You may not use this file except in compliance
16# with the License.
17#
18# See the file CDDL.Schily.txt in this distribution for details.
19# A copy of the CDDL is also available via the Internet at
20# http://www.opensource.org/licenses/cddl1.txt
21#
22# When distributing Covered Code, include this CDDL HEADER in each
23# file and include the License file CDDL.Schily.txt from this distribution.
24###########################################################################
25
26$(ALLTARGETS):
27	$(NOECHO)list="$(DIRS)";							\
28	if [ -d TARGETS -a -f TARGETS/__slot ]; then				\
29		list=`echo TARGETS/[0123456789][0123456789]* |			\
30			sed -e 's;TARGETS/[0123456789][0123456789];;g' | sed -e 's;!@!;/;g'`;\
31	fi;									\
32	for DIR in $${list} ;							\
33	do									\
34		(								\
35		echo "	==> MAKING \"$@\" ON SUBDIRECTORY \"$(CURWDIR)/$$DIR\"";\
36		if [ -d ./$$DIR -a -r ./$$DIR/Makefile ] ; then			\
37			cd ./$$DIR && "$(MAKE)" $(MAKEMACS) XARCH=$(XARCH) DIRNAME=$(CURWDIR)/$$DIR $@;		\
38		else								\
39			echo "NOTICE: Partial source ($(CURWDIR)/$$DIR) missing";\
40		fi								\
41		);								\
42	done
43
44tinfo:
45	$(NOECHO)[ -d TARGETS -a -f TARGETS/__slot ] && list=`echo TARGETS/[0123456789][0123456789]*`;\
46	for i in $${list};							\
47	do									\
48		(read line < $$i;						\
49		name=`echo $$i | sed -e 's;TARGETS/[0123456789][0123456789];;' | sed -e 's;!@!;/;g'`; \
50		echo "$$name	- $${line}";					\
51		);								\
52	done
53
54###########################################################################
55