2004-03-26 15:19:11 +00:00
|
|
|
# src/Makefile
|
|
|
|
|
|
|
|
TOP = ..
|
|
|
|
|
|
|
|
include $(TOP)/configs/current
|
|
|
|
|
|
|
|
SUBDIRS = $(SRC_DIRS)
|
|
|
|
|
|
|
|
|
2004-08-25 15:49:41 +01:00
|
|
|
default: message $(LIB_DIR) subdirs
|
|
|
|
|
|
|
|
|
|
|
|
message:
|
|
|
|
@echo "Making sources for" $(CONFIG_NAME)
|
2004-03-26 15:19:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
subdirs:
|
|
|
|
@for dir in $(SUBDIRS) ; do \
|
|
|
|
if [ -d $$dir ] ; then \
|
2004-06-01 01:06:14 +01:00
|
|
|
(cd $$dir ; $(MAKE)) || exit 1 ; \
|
2004-03-26 15:19:11 +00:00
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
2006-06-22 23:50:48 +01:00
|
|
|
install:
|
|
|
|
@for dir in $(SUBDIRS) ; do \
|
|
|
|
if [ -d $$dir ] ; then \
|
|
|
|
(cd $$dir ; $(MAKE) install) || exit 1 ; \
|
|
|
|
fi \
|
|
|
|
done
|
2004-03-26 15:19:11 +00:00
|
|
|
|
|
|
|
$(LIB_DIR):
|
|
|
|
-mkdir $(LIB_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for dir in $(SUBDIRS) ; do \
|
|
|
|
if [ -d $$dir ] ; then \
|
2004-06-01 01:06:14 +01:00
|
|
|
(cd $$dir ; $(MAKE) clean) ; \
|
2004-03-26 15:19:11 +00:00
|
|
|
fi \
|
|
|
|
done
|