makefile condition

This commit is contained in:
Bob Mottram 2018-05-07 15:36:40 +01:00
parent ad70f564ba
commit b7e2eb4b43
1 changed files with 5 additions and 2 deletions

View File

@ -41,10 +41,13 @@ IMAGE = $(NAME).img
ARCHIVE = $(IMAGE).xz
SIGNATURE = $(ARCHIVE).sig
OWNER = 1000
if [ ! "$CONTINUOUS_INTEGRATION" ]; then
ifeq ("$CONTINUOUS_INTEGRATION", "")
XZ =
SIGN =
else
XZ = xz --no-warn --verbose --keep --threads=0 -3
SIGN = -gpg --output $(SIGNATURE) --detach-sig $(ARCHIVE)
fi
endif
# settings for `make test`
TEST_SSH_PORT = 2222