forked from h2oai/h2o-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 864 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
UNAME = $(shell uname)
ifeq ($(UNAME),Darwin)
INSTALLBUILDER ?= /Applications/BitRock\ InstallBuilder\ Enterprise\ 8.6.0/bin/Builder.app/Contents/MacOS/installbuilder.sh
endif
ifeq ($(UNAME),Linux)
INSTALLBUILDER ?= /var/lib/jenkins/0xdata/frozen/installbuilder-8.6.0/bin/builder
endif
WC := $(wildcard $(INSTALLBUILDER))
ifeq ($(WC),)
build: helpful_message
else
build: really_build
endif
INSTALLER_OUTPUT_DIR = $(CURDIR)/../target
PROJECT_VERSION ?= 99.60
BITROCK_OPTS = --setvars project.outputDirectory=$(INSTALLER_OUTPUT_DIR) project.version=$(PROJECT_VERSION)
really_build: build_mac build_win
build_mac:
$(INSTALLBUILDER) build h2o.xml osx $(BITROCK_OPTS)
build_win:
$(INSTALLBUILDER) build h2o.xml windows $(BITROCK_OPTS)
clean:
helpful_message:
@echo InstallBuilder not found, skipping creation of windows and mac installer packages.