Ver código fonte

makefile condition

Bob Mottram 6 anos atrás
pai
commit
b7e2eb4b43
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5
    2
      src/freedombone-image-makefile

+ 5
- 2
src/freedombone-image-makefile Ver arquivo

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