|
|
# is given through the shell variable `target'. | # is given through the shell variable `target'. |
BUILD_CMD= if [ -d "$$dir" ]; then \ | BUILD_CMD= if [ -d "$$dir" ]; then \ |
( cd $$dir && echo "making $$target in $$dir..." && \ | ( cd $$dir && echo "making $$target in $$dir..." && \ |
$(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. DIR=$$dir $$target \ |
$(CLEARENV) && [ "$$target" = "links" ] && \ |
|
$(MAKE) -e $(BUILDENV) DIR=$$dir $$target || \ |
|
$(MAKE) -e $(BUILDENV) TOP=.. DIR=$$dir $$target \ |
) || exit 1; \ | ) || exit 1; \ |
fi | fi |
RECURSIVE_BUILD_CMD=for dir in $(DIRS); do $(BUILD_CMD); done | RECURSIVE_BUILD_CMD=for dir in $(DIRS); do $(BUILD_CMD); done |