2007-02-21 04:18:09 +00:00
|
|
|
SUBDIRS=awk lsp utl
|
2005-01-19 09:26:48 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
@for i in $(SUBDIRS); \
|
|
|
|
do \
|
|
|
|
if [ ! -d $$i ]; \
|
|
|
|
then \
|
|
|
|
echo Error: $$i not a directory; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
cd $$i; \
|
|
|
|
if make $@; \
|
|
|
|
then \
|
|
|
|
echo > /dev/null; \
|
|
|
|
else \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
cd ..; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for i in $(SUBDIRS); \
|
|
|
|
do \
|
|
|
|
if [ ! -d $$i ]; \
|
|
|
|
then \
|
|
|
|
echo Error: $$i not a directory; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
cd $$i; \
|
|
|
|
if make $@; \
|
|
|
|
then \
|
|
|
|
echo > /dev/null; \
|
|
|
|
else \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
cd ..; \
|
|
|
|
done
|