Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (44 sloc) 0.954 kb
ROOT_DIR := $(shell pwd)
TOOLS_DIR := $(ROOTD_DIR)/joy_tools/
GATEWAY_SVR_DIR := $(ROOTD_DIR)/gateway_svr/
DIRS := joy_tools \
service_svr \
esb_svr \
TARGET_DIRS := $(foreach dir, $(DIRS), ./$(dir))
TARGET_REBARS := $(foreach dir, $(DIRS), ./$(dir)/rebar)
TARGET_BOOTS := $(foreach dir, $(DIRS), ./$(dir)/boot.sh)
TARGET_LOGS := $(foreach dir, $(DIRS), ./$(dir)/log)
all:auth
@-for val in $(TARGET_DIRS); \
do \
$(MAKE) -C $$val; \
done
@echo all completed
auth:
@-for val in $(TARGET_REBARS); \
do \
chmod 777 $$val; \
done
@-for val in $(TARGET_BOOTS); \
do \
chmod 777 $$val; \
done
.PHONY:create-log
create-log:
@-for log in $(TARGET_LOGS); \
do \
mkdir $$log; \
done
@echo directory of logging created
.PHONY:clean-log
clean-log:
@-for log in $(TARGET_LOGS); \
do \
rm -rf $$log; \
done
.PHONY:clean
clean:auth
@-for val in $(TARGET_DIRS); \
do \
$(MAKE) -C $$val clean; \
done
Jump to Line
Something went wrong with that request. Please try again.