From 6829d05453658a9f9672c847299c652b15126db1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Oct 2020 10:49:55 +0100 Subject: Introduce iot-barcode.target --- Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 895cb38..7c9252f 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ install: # install executables mkdir -p $(bindir) $(INSTALL_PROGRAM) iot_barcode_device_handler $(bindir)/ - $(INSTALL_PROGRAM) iot_barcode_daemon $(bindir)/ + $(INSTALL_PROGRAM) iot_barcode_transmitter $(bindir)/ # install library / package mkdir -p $(libdir)/ @@ -35,8 +35,12 @@ install: $(INSTALL_DATA) config.json $(confdir)/config.json # install systemd unit files - $(INSTALL_DATA) iot-barcode.service $(systemddir)/ - $(INSTALL_DATA) iot-barcode-device-handler.service $(systemddir)/ + $(INSTALL_DATA) systemd/iot-barcode-transmitter.service $(systemddir)/ + systemctl enable iot-barcode-transmitter.service + $(INSTALL_DATA) systemd/iot-barcode-device-handler.service $(systemddir)/ + systemctl enable iot-barcode-device-handler.service + $(INSTALL_DATA) systemd/iot-barcode.target $(systemddir)/ + systemctl daemon-reload # install license mkdir -p $(sharedir)/licenses/ @@ -46,11 +50,15 @@ install: uninstall: rm -f $(bindir)/iot_barcode_device_handler - rm -f $(bindir)/iot_barcode_daemon + rm -f $(bindir)/iot_barcode_transmitter rm -f $(libdir)/__init__.py rm -f $(libdir)/config.py rm -f $(libdir)/mqtt.py rm -f $(libdir)/static.py - rm -f $(systemddir)/iot-barcode.service + systemctl disable iot-barcode-transmitter.service + rm -f $(systemddir)/iot-barcode-transmitter.service + systemctl disable iot-barcode-device-handler.service rm -f $(systemddir)/iot-barcode-device-handler.service + systemctl disable iot-barcode.target + rm -f $(systemddir)/iot-barcode.target rm -f $(sharedir)/licenses/$(PKGNAME) -- cgit v1.2.3-70-g09d2