build: enable systemd system units
Enable the systemd system unit for the psu reset target
in the configuration and Makefile for this daemon instead of storing it
in the recipe, per the daemon(7) manpage guidelines.
Change-Id: I565b10619ae0250845b6a10f6fce73b018b494f7
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/Makefile.am b/Makefile.am
index 5b2db07..1559188 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,10 @@
AM_DEFAULT_SOURCE_EXT = .cpp
+if HAVE_SYSTEMD
+systemdsystemunit_DATA = \
+ gbmc-psu-hardreset.target
+endif
+
libsyscmdsdir = ${libdir}/ipmid-providers
libsyscmds_LTLIBRARIES = libsyscmds.la
libsyscmds_la_SOURCES = main.cpp cable.cpp cpld.cpp eth.cpp psu.cpp