mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 23:46: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
|
SENSORNET := udp
|
||||||
TEST := tests
|
TEST := tests
|
||||||
|
|
||||||
|
INSTALL_DIR=../../
|
||||||
|
CONFIG_DIR=../../
|
||||||
|
|
||||||
CPPSRCS := \
|
CPPSRCS := \
|
||||||
$(SRCDIR)/MQTTGWConnectionHandler.cpp \
|
$(SRCDIR)/MQTTGWConnectionHandler.cpp \
|
||||||
$(SRCDIR)/MQTTGWPacket.cpp \
|
$(SRCDIR)/MQTTGWPacket.cpp \
|
||||||
@@ -143,11 +146,11 @@ clean:
|
|||||||
rm -rf $(OUTDIR)
|
rm -rf $(OUTDIR)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -pf $(PROG) ../../
|
cp -pf $(PROG) $(INSTALL_DIR)
|
||||||
cp -pf $(LPROG) ../../
|
cp -pf $(LPROG) $(INSTALL_DIR)
|
||||||
cp -pf $(CONFIG) ../../
|
cp -pf $(CONFIG) $(CONFIG_DIR)
|
||||||
cp -pf $(CLIENTS) ../../
|
cp -pf $(CLIENTS) $(CONFIG_DIR)
|
||||||
cp -pf $(PREDEFTOPIC) ../../
|
cp -pf $(PREDEFTOPIC) $(CONFIG_DIR)
|
||||||
|
|
||||||
|
|
||||||
exectest:
|
exectest:
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ $ make
|
|||||||
$ make install
|
$ make install
|
||||||
$ make clean
|
$ 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.**
|
### **step2. Execute the Gateway.**
|
||||||
|
|||||||
Reference in New Issue
Block a user