core-extra/scripts/Makefile.am

32 lines
736 B
Makefile
Raw Normal View History

# 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.
#
CLEANFILES = core-daemon
DISTCLEANFILES = Makefile.in core-daemon.service core-daemon
EXTRA_DIST = core-daemon.in core-daemon.service.in
2019-08-09 00:19:01 +01:00
SUBDIRS =
# install startup scripts based on --with-startup=option configure option
# init.d (default), systemd
if WANT_INITD
startupdir = /etc/init.d
startup_SCRIPTS = core-daemon
endif
if WANT_SYSTEMD
startupdir = /usr/lib/systemd/system
startup_SCRIPTS = core-daemon.service
endif
# remove extra scripts and their directories if they are empty
uninstall-hook:
rmdir -p $(startupdir) || true