add knx.cfg to inst target
This commit is contained in:
@@ -191,3 +191,7 @@ if(HAVE_MQTT)
|
||||
FILE(GLOB MQTT_CFG_FILES "${CMAKE_SOURCE_DIR}/contrib/etc/ebusd/mqtt-*.cfg")
|
||||
install(FILES ${MQTT_CFG_FILES} DESTINATION /etc/ebusd/)
|
||||
endif(HAVE_MQTT)
|
||||
if(HAVE_KNX)
|
||||
FILE(GLOB KNX_CFG_FILES "${CMAKE_SOURCE_DIR}/contrib/etc/ebusd/knx*.cfg")
|
||||
install(FILES ${KNX_CFG_FILES} DESTINATION /etc/ebusd/)
|
||||
endif(HAVE_KNX)
|
||||
|
||||
+6
-1
@@ -21,6 +21,10 @@ if MQTT
|
||||
MQTT_INST_ADD = cp -n $(srcdir)/contrib/etc/ebusd/mqtt-*.cfg $(DESTDIR)$(sysconfdir)/ebusd
|
||||
endif
|
||||
|
||||
if KNX
|
||||
KNX_INST_ADD = cp -n $(srcdir)/contrib/etc/ebusd/knx*.cfg $(DESTDIR)$(sysconfdir)/ebusd
|
||||
endif
|
||||
|
||||
install-data-hook:
|
||||
@[ -d $(DESTDIR)$(sysconfdir)/ebusd ] || mkdir -p $(DESTDIR)$(sysconfdir)/ebusd; \
|
||||
if [ -f "/etc/debian_version" ]; then \
|
||||
@@ -29,7 +33,8 @@ install-data-hook:
|
||||
cp $(srcdir)/contrib/debian/init.d/ebusd $(DESTDIR)/etc/init.d/; \
|
||||
cp $(srcdir)/contrib/debian/systemd/ebusd.service $(DESTDIR)/lib/systemd/system/; \
|
||||
fi; \
|
||||
$(MQTT_INST_ADD)
|
||||
$(MQTT_INST_ADD) \
|
||||
$(KNX_INST_ADD)
|
||||
|
||||
test:
|
||||
$(MAKE) -C src/lib/ebus/test
|
||||
|
||||
Reference in New Issue
Block a user