# HG changeset patch # User Kim Alvefur # Date 1385846780 -3600 # Node ID 56b1f151f4a31fcc7dbde49e064a288715077ece # Parent a6a7839364aa983fb36acfb4ded2a61102b9c2b4 Makefile, configure: Add option for disabling generation of example certificates diff -r a6a7839364aa -r 56b1f151f4a3 Makefile --- a/Makefile Fri Nov 29 20:10:13 2013 +0000 +++ b/Makefile Sat Nov 30 22:26:20 2013 +0100 @@ -17,7 +17,9 @@ all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version $(MAKE) -C util-src install - $(MAKE) -C certs localhost.crt example.com.crt +ifeq ($(EXCERTS),yes) + $(MAKE) -C certs localhost.crt example.com.crt || true +endif install: prosody.install prosodyctl.install prosody.cfg.lua.install util/encodings.so util/encodings.so util/pposix.so util/signal.so install -d $(BIN) $(CONFIG) $(MODULES) $(SOURCE) diff -r a6a7839364aa -r 56b1f151f4a3 configure --- a/configure Fri Nov 29 20:10:13 2013 +0000 +++ b/configure Sat Nov 30 22:26:20 2013 +0100 @@ -17,6 +17,7 @@ CXX=g++ LD=gcc RUNWITH=lua +EXCERTS=yes CFLAGS="-fPIC -Wall" LDFLAGS="-shared" @@ -64,6 +65,7 @@ Default is $LD --require-config Will cause Prosody to refuse to run when it fails to find a configuration file +--no-example-certs Disables generation of example certificates. EOF } @@ -178,6 +180,9 @@ --runwith=*) RUNWITH="$value" ;; + --no-example-certs) + EXCERTS= + ;; *) echo "Error: Unknown flag: $1" exit 1 @@ -349,6 +354,7 @@ CXX=$CXX LD=$LD RUNWITH=$RUNWITH +EXCERTS=$EXCERTS EOF