Fix to make GNU make 4.1 accept the Makefile after cert changes.

This commit is contained in:
Johny Mattsson 2016-03-10 14:33:19 +11:00
parent 3490ffb285
commit 731264776d
1 changed files with 2 additions and 1 deletions

View File

@ -224,11 +224,12 @@ endif
.PHONY: pre_build
pre_build:
ifneq ($(wildcard $(TOP_DIR)/server-ca.crt),)
pre_build:
python $(TOP_DIR)/tools/make_server_cert.py $(TOP_DIR)/server-ca.crt > $(TOP_DIR)/app/modules/server-ca.crt.h
DEFINES += -DHAVE_SSL_SERVER_CRT=\"server-ca.crt.h\"
else
pre_build:
@-rm -f $(TOP_DIR)/app/modules/server-ca.crt.h
endif