From 2e2dc220e63a4759e43471d480d4e5f082eb52fd Mon Sep 17 00:00:00 2001 From: rtrimana Date: Fri, 16 Feb 2018 08:19:40 -0800 Subject: [PATCH] Adding bin directory creation in Makefile --- iotjava/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iotjava/Makefile b/iotjava/Makefile index e1e8f08..81b323c 100644 --- a/iotjava/Makefile +++ b/iotjava/Makefile @@ -2,10 +2,14 @@ BASE := .. include $(BASE)/common.mk -all: tree parser compiler rmi runtime installer +all: mkdir tree parser compiler rmi runtime installer infra: runtime installer +PHONY += mkdir +mkdir: + [ -d ../bin ] || mkdir ../bin + # Parser compilation and run PHONY += tree tree: @@ -233,7 +237,7 @@ runtime: $(JAVAC) -classpath .:$(RUNTIMEJARS):$(PHONEJARS):$(ZIPJARS) iotruntime/*.java iotruntime/master/*.java iotruntime/slave/*.java iotruntime/messages/*.java iotruntime/stub/*.java iotruntime/zigbee/*.java -d $(BIN_DIR) cp ../localconfig/iotruntime/IoTMaster.config $(BIN_DIR)/iotruntime/ cp ../localconfig/iotruntime/IoTSlave.config $(BIN_DIR)/iotruntime/ - cp ../others/sslkey/*.jks $(BIN_DIR)/iotruntime/ + #cp ../others/sslkey/*.jks $(BIN_DIR)/iotruntime/ cp -r ../localconfig/mysql $(BIN_DIR)/iotruntime/ cp -r ../localconfig/tomoyo $(BIN_DIR)/iotruntime/ -- 2.34.1