Properly install service file
If the service file is included in the yocto meta layer, it can be installed
directly. If it is included in the code source directory, it must be installed
using the build system. This adds the autoconf/automake magic to make this
happen.
Change-Id: I72ba8bb2ec2017b1c47fd6f7de2ee82aad4b8d01
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/Makefile.am b/Makefile.am
index 4fa8796..7e049af 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,3 +15,8 @@
-DBOOST_COROUTINES_NO_DEPRECATION_WARNING \
-DBOOST_ASIO_DISABLE_THREADS \
-DBOOST_ALL_NO_LIB
+
+if HAVE_SYSTEMD
+SYSTEMD_UNIT = phosphor-ipmi-kcs@.service
+systemdsystemunit_DATA = $(SYSTEMD_UNIT)
+endif # HAVE_SYSTEMD