2007-03-25 15:02:54 +00:00
|
|
|
#
|
2007-04-13 08:24:31 +00:00
|
|
|
# $Id: makefile.in,v 1.21 2007-04-13 08:24:31 bacon Exp $
|
2007-03-25 15:02:54 +00:00
|
|
|
#
|
2005-01-19 09:26:48 +00:00
|
|
|
|
2007-03-25 15:02:54 +00:00
|
|
|
|
2007-04-13 08:24:31 +00:00
|
|
|
LIBDIRS = cmn utl awk lsp test/awk test/lsp
|
2007-04-06 14:34:23 +00:00
|
|
|
MODE = @BUILDMODE@
|
|
|
|
LIBTOOL_DEPS = @LIBTOOL_DEPS@
|
2007-03-25 15:02:54 +00:00
|
|
|
|
2007-04-13 08:24:31 +00:00
|
|
|
all: build
|
2007-03-25 15:02:54 +00:00
|
|
|
|
2007-04-13 08:24:31 +00:00
|
|
|
build:
|
2007-03-25 15:02:54 +00:00
|
|
|
@for i in $(LIBDIRS); \
|
2005-01-19 09:26:48 +00:00
|
|
|
do \
|
|
|
|
if [ ! -d $$i ]; \
|
|
|
|
then \
|
|
|
|
echo Error: $$i not a directory; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
2007-04-13 08:24:31 +00:00
|
|
|
saved=`pwd`; cd "$$i"; \
|
|
|
|
if make; \
|
2007-03-25 15:02:54 +00:00
|
|
|
then \
|
|
|
|
echo > /dev/null; \
|
|
|
|
else \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
2007-04-13 08:24:31 +00:00
|
|
|
cd "$$saved"; \
|
2005-01-19 09:26:48 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
2007-03-25 15:02:54 +00:00
|
|
|
@for i in $(LIBDIRS); \
|
2005-01-19 09:26:48 +00:00
|
|
|
do \
|
|
|
|
if [ ! -d $$i ]; \
|
|
|
|
then \
|
|
|
|
echo Error: $$i not a directory; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
2007-04-13 08:24:31 +00:00
|
|
|
saved=`pwd`; cd "$$i"; \
|
|
|
|
if make $@; \
|
2005-01-19 09:26:48 +00:00
|
|
|
then \
|
|
|
|
echo > /dev/null; \
|
|
|
|
else \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
2007-04-13 08:24:31 +00:00
|
|
|
cd "$$saved"; \
|
2005-01-19 09:26:48 +00:00
|
|
|
done
|