blob: b00eca8164b5304b77984068078bdafe16a08e6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $NetBSD: Makefile.plugin,v 1.4 2011/04/08 22:56:12 morr Exp $
#
INSTALLATION_DIRS+= libexec/nagios
do-build:
cd ${WRKSRC}/lib && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE}
cd ${WRKSRC}/gl && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE}
.if ${BINARY_TARGET:D1}
cd ${WRKSRC}/plugins && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${BINARY_TARGET}
.endif
.if ${SCRIPT_TARGET:D1}
cd ${WRKSRC}/plugins-scripts && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${SCRIPT_TARGET}
.endif
do-install:
.if ${BINARY_TARGET:D1}
for PROG in ${BINARY_TARGET}; do \
${INSTALL_PROGRAM} ${WRKSRC}/plugins/$${PROG} \
${DESTDIR}${PREFIX}/libexec/nagios; \
done
.endif
.if ${SCRIPT_TARGET:D1}
for PROG in ${SCRIPT_TARGET}; do \
${INSTALL_SCRIPT} ${WRKSRC}/plugins-scripts/$${PROG} \
${DESTDIR}${PREFIX}/libexec/nagios; \
done
.endif
|