Commits

Tim van der Molen committed e0defb7

Prevent "make install" failure when no input or output plug-ins have been
built. Reported by Konstantin Schukraft.

Comments (0)

Files changed (2)

 	${INSTALL_DIR} ${DESTDIR}${PLUGINDIR}/op
 	${INSTALL_BIN} ${PROG} ${DESTDIR}${BINDIR}
 	${INSTALL_MAN} ${PROG}.1 ${DESTDIR}${MANDIR}/man1
+ifneq (${IP_LIBS},)
 	${INSTALL_LIB} ${IP_LIBS} ${DESTDIR}${PLUGINDIR}/ip
+endif
+ifneq (${OP_LIBS},)
 	${INSTALL_LIB} ${OP_LIBS} ${DESTDIR}${PLUGINDIR}/op
+endif
 
 lint: ${LOBJS} ${IP_LOBJS} ${OP_LOBJS}
 	${LINT} ${LINTFLAGS} $(filter -l%, ${LDFLAGS}) ${LOBJS} ${IP_LOBJS} \
 	${INSTALL_DIR} ${DESTDIR}${PLUGINDIR}/op
 	${INSTALL_BIN} ${PROG} ${DESTDIR}${BINDIR}
 	${INSTALL_MAN} ${PROG}.1 ${DESTDIR}${MANDIR}/man1
+.if !empty(IP_LIBS)
 	${INSTALL_LIB} ${IP_LIBS} ${DESTDIR}${PLUGINDIR}/ip
+.endif
+.if !empty(OP_LIBS)
 	${INSTALL_LIB} ${OP_LIBS} ${DESTDIR}${PLUGINDIR}/op
+.endif
 
 lint: ${LOBJS} ${IP_LOBJS} ${OP_LOBJS}
 	${LINT} ${LINTFLAGS} ${LDFLAGS:M-l*} ${LOBJS} ${IP_LOBJS} ${OP_LOBJS}