2013-08-29 15:21:13 +01:00
|
|
|
# CORE
|
|
|
|
# (c)2011-2013 the Boeing Company.
|
|
|
|
# See the LICENSE file included in this distribution.
|
|
|
|
#
|
|
|
|
# author: Jeff Ahrenholz <jeffrey.m.ahrenholz@boeing.com>
|
|
|
|
#
|
|
|
|
# Makefile for installing scripts.
|
|
|
|
#
|
|
|
|
|
2015-05-26 18:34:22 +01:00
|
|
|
CLEANFILES = core-daemon
|
|
|
|
|
2018-03-23 01:32:58 +00:00
|
|
|
DISTCLEANFILES = Makefile.in core-daemon.service core-daemon
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-03-23 01:32:58 +00:00
|
|
|
EXTRA_DIST = core-daemon.in core-daemon.service.in
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
SUBDIRS = perf
|
|
|
|
|
|
|
|
# install startup scripts based on --with-startup=option configure option
|
2018-03-23 01:32:58 +00:00
|
|
|
# init.d (default), systemd
|
2013-08-29 15:21:13 +01:00
|
|
|
if WANT_INITD
|
2015-05-26 21:40:07 +01:00
|
|
|
startupdir = /etc/init.d
|
2015-05-26 18:34:22 +01:00
|
|
|
startup_SCRIPTS = core-daemon
|
2013-08-29 15:21:13 +01:00
|
|
|
endif
|
|
|
|
if WANT_SYSTEMD
|
2015-05-26 21:40:07 +01:00
|
|
|
startupdir = /etc/systemd/system
|
2015-05-26 18:34:22 +01:00
|
|
|
startup_SCRIPTS = core-daemon.service
|
2013-08-29 15:21:13 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# remove extra scripts and their directories if they are empty
|
|
|
|
uninstall-hook:
|
2015-05-26 18:34:22 +01:00
|
|
|
rmdir -p $(startupdir) || true
|