2013-08-29 14:21:13 +00: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 17:34:22 +00:00
|
|
|
CLEANFILES = core-daemon
|
|
|
|
|
2018-03-22 18:32:58 -07:00
|
|
|
DISTCLEANFILES = Makefile.in core-daemon.service core-daemon
|
2013-08-29 14:21:13 +00:00
|
|
|
|
2018-03-22 18:32:58 -07:00
|
|
|
EXTRA_DIST = core-daemon.in core-daemon.service.in
|
2013-08-29 14:21:13 +00:00
|
|
|
|
2019-08-08 16:19:01 -07:00
|
|
|
SUBDIRS =
|
2013-08-29 14:21:13 +00:00
|
|
|
|
|
|
|
# install startup scripts based on --with-startup=option configure option
|
2018-03-22 18:32:58 -07:00
|
|
|
# init.d (default), systemd
|
2013-08-29 14:21:13 +00:00
|
|
|
if WANT_INITD
|
2015-05-26 20:40:07 +00:00
|
|
|
startupdir = /etc/init.d
|
2015-05-26 17:34:22 +00:00
|
|
|
startup_SCRIPTS = core-daemon
|
2013-08-29 14:21:13 +00:00
|
|
|
endif
|
|
|
|
if WANT_SYSTEMD
|
2020-01-24 09:28:53 -05:00
|
|
|
startupdir = /usr/lib/systemd/system
|
2015-05-26 17:34:22 +00:00
|
|
|
startup_SCRIPTS = core-daemon.service
|
2013-08-29 14:21:13 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# remove extra scripts and their directories if they are empty
|
|
|
|
uninstall-hook:
|
2015-05-26 17:34:22 +00:00
|
|
|
rmdir -p $(startupdir) || true
|