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-07 15:47:14 -08:00
|
|
|
DISTCLEANFILES = Makefile.in
|
2013-08-29 14:21:13 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = core-daemon-init.d \
|
2015-12-15 20:57:12 +00:00
|
|
|
core-daemon.service.in \
|
2013-08-29 14:21:13 +00:00
|
|
|
core-daemon-rc.d \
|
2018-03-07 15:47:14 -08:00
|
|
|
core-daemon-init.d-SUSE
|
2013-08-29 14:21:13 +00:00
|
|
|
|
|
|
|
SUBDIRS = perf
|
|
|
|
|
|
|
|
# install startup scripts based on --with-startup=option configure option
|
2018-03-07 12:54:19 -08:00
|
|
|
# init.d (default), systemd, SUSE
|
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
|
|
|
|
|
|
|
|
core-daemon: core-daemon-init.d
|
|
|
|
cp $< $@
|
2013-08-29 14:21:13 +00:00
|
|
|
endif
|
|
|
|
if WANT_SYSTEMD
|
2015-05-26 20:40:07 +00:00
|
|
|
startupdir = /etc/systemd/system
|
2015-05-26 17:34:22 +00:00
|
|
|
startup_SCRIPTS = core-daemon.service
|
2013-08-29 14:21:13 +00:00
|
|
|
endif
|
|
|
|
if WANT_SUSE
|
2015-05-26 20:40:07 +00:00
|
|
|
startupdir = /etc/init.d
|
2015-05-26 17:34:22 +00:00
|
|
|
startup_SCRIPTS = core-daemon
|
|
|
|
|
|
|
|
core-daemon: core-daemon-init.d-SUSE
|
|
|
|
cp $< $@
|
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
|