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
|
|
|
|
2019-08-09 00:19:01 +01:00
|
|
|
SUBDIRS =
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
# 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
|
2020-01-24 14:28:53 +00:00
|
|
|
startupdir = /usr/lib/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
|