Fix installation using WITH_TLS=no.

Closes #2281. Thanks to Matt Turner.
This commit is contained in:
Roger Light 2021-08-20 23:49:59 +01:00
parent 93b2232bb9
commit 342aa0ad1a
2 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,9 @@ Clients:
- mosquitto_sub and mosquitto_rr now open stdout in binary mode on Windows
so binary payloads are not modified when printing.
Build:
- Fix installation using WITH_TLS=no. Closes #2281.
2.0.11 - 2021-06-08
===================

View File

@ -37,8 +37,10 @@ password_mosq.o : ../../src/password_mosq.c ../../src/password_mosq.h
${CROSS_COMPILE}${CC} $(APP_CPPFLAGS) $(APP_CFLAGS) -c $< -o $@
install : all
ifeq ($(WITH_TLS),yes)
$(INSTALL) -d "${DESTDIR}$(prefix)/bin"
$(INSTALL) ${STRIP_OPTS} mosquitto_passwd "${DESTDIR}${prefix}/bin/mosquitto_passwd"
endif
uninstall :
-rm -f "${DESTDIR}${prefix}/bin/mosquitto_passwd"