Skip to content
Snippets Groups Projects
Commit b5b2ffd6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added GNU-compliant DESTDIR support. Install the lyskom C programs

if they are built.
parent be32ee43
No related branches found
No related tags found
No related merge requests found
DESTDIR = /usr/local/nagios/libexec/ LIBEXECDIR = /usr/local/nagios/libexec/
SCRIPTS = check_cups check_glsa check_saned check_lpd check_hddtemp \ SCRIPTS = check_cups check_glsa check_saned check_lpd check_hddtemp \
check_link_status check_true check_lysrdiff check_syslog \ check_link_status check_true check_lysrdiff check_syslog \
check_ping check_enodia_monitored check_hostextinfo check_ping check_enodia_monitored check_hostextinfo
...@@ -6,5 +6,11 @@ SCRIPTS = check_cups check_glsa check_saned check_lpd check_hddtemp \ ...@@ -6,5 +6,11 @@ SCRIPTS = check_cups check_glsa check_saned check_lpd check_hddtemp \
all:; all:;
install: install:
mkdir -p $(DESTDIR) mkdir -p $(DESTDIR)$(LIBEXECDIR)
for s in $(SCRIPTS); do install $$s $(DESTDIR)/$$s || exit 1; done for s in $(SCRIPTS); \
do install $$s $(DESTDIR)$(LIBEXECDIR)/$$s || exit 1; done
if [ -f src/lyskom/.lastos ] ; \
then (cd src/lyskom && $(MAKE) install) || exit 1 ; \
else true; \
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment