diff --git a/MQTTSNGateway/Makefile b/MQTTSNGateway/Makefile index 4015b85..1fd2233 100644 --- a/MQTTSNGateway/Makefile +++ b/MQTTSNGateway/Makefile @@ -18,6 +18,9 @@ OS := linux SENSORNET := udp TEST := tests +INSTALL_DIR=../../ +CONFIG_DIR=../../ + CPPSRCS := \ $(SRCDIR)/MQTTGWConnectionHandler.cpp \ $(SRCDIR)/MQTTGWPacket.cpp \ @@ -143,11 +146,11 @@ clean: rm -rf $(OUTDIR) install: - cp -pf $(PROG) ../../ - cp -pf $(LPROG) ../../ - cp -pf $(CONFIG) ../../ - cp -pf $(CLIENTS) ../../ - cp -pf $(PREDEFTOPIC) ../../ + cp -pf $(PROG) $(INSTALL_DIR) + cp -pf $(LPROG) $(INSTALL_DIR) + cp -pf $(CONFIG) $(CONFIG_DIR) + cp -pf $(CLIENTS) $(CONFIG_DIR) + cp -pf $(PREDEFTOPIC) $(CONFIG_DIR) exectest: diff --git a/MQTTSNGateway/README.md b/MQTTSNGateway/README.md index e04ffa6..108511e 100644 --- a/MQTTSNGateway/README.md +++ b/MQTTSNGateway/README.md @@ -8,7 +8,11 @@ $ make $ make install $ make clean ```` -MQTT-SNGateway, MQTT-SNLogmonitor and param.conf are copied into ../ directory. +MQTT-SNGateway, MQTT-SNLogmonitor and *.conf files are copied into ../ directory. +If you want to install the gateway into specific directories, enter a command line as follows: +```` +$ make install INSTALL_DIR=/path/to/your_directory CONFIG_DIR=/path/to/your_directory +```` ### **step2. Execute the Gateway.**