mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +01:00
Install the gateway into any directory. #124
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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.**
|
||||
|
||||
Reference in New Issue
Block a user