iprutils/systemd/Makefile.am
Gabriel Krisman Bertazi 84fbaf7c3d iprutils: Add option to enable/disable systemd files from configure script.
Allow users to disable systemd support in iprutils for distros that
don't support it.  One can run ../configure --without-systemd to avoid
building the service files.

The default behavior is to build systemd files (--with-systemd) and they
will be installed into %{prefix}/usr/lib/systemd/system/. But path can
be overriden using --with-systemd=<path>.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
2015-08-21 13:52:47 -05:00

22 lines
635 B
Makefile

# IBM IPR adapter configuration utility
#
# (C) Copyright 2015
# International Business Machines Corporation and others.
# All Rights Reserved. This program and the accompanying
# materials are made available under the terms of the
# Common Public License v1.0 which accompanies this distribution.
#
#
%.service: %.service.in
sed -e 's,[@]sbindir[@],$(sbindir),g' < $< > $@
systemdunitdir = @systemdunitdir@
nodist_systemdunit_DATA = iprdump.service \
iprinit.service iprupdate.service
EXTRA_DIST = iprdump.service.in \
iprinit.service.in iprupdate.service.in
clean-local:
-rm iprdump.service iprinit.service iprupdate.service