blob: fd04781b451a50c53977e3b2799942da61d2c9ed (
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
|
# $NetBSD: Makefile.plugin,v 1.2 2006/09/09 02:43:11 obache Exp $
#
do-build:
cd ${WRKSRC}/lib && ${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} \
${PREFIX}/libexec/nagios; \
done
.endif
.if ${SCRIPT_TARGET:D1}
for PROG in ${SCRIPT_TARGET}; do \
${INSTALL_SCRIPT} ${WRKSRC}/plugins-scripts/$${PROG} \
${PREFIX}/libexec/nagios; \
done
.endif
|