forked from rethinkdb/rethinkdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 1.53 KB
/
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
34
35
36
37
38
39
# Copyright 2010-2012 RethinkDB, all rights reserved.
DEBUG?=0
all:
cd src ; $(MAKE) STRIP_ON_INSTALL=0 DEBUG=$(DEBUG) PACKAGING=1 WEBRESDIR=/usr/share/rethinkdb/web ;
install: all
cd src ; $(MAKE) STRIP_ON_INSTALL=0 DEBUG=$(DEBUG) PACKAGING=1 install ;
clean:
rm -rf build
distclean: clean
build-deb-src-control:
cd src ; $(MAKE) DEBUG=$(DEBUG) ALLOW_INTERNAL_TOOLS=1 FETCH_INTERNAL_TOOLS=1 build-deb-src-control ;
build-deb-src: build-deb-src-control
# $(shell scripts/gen-version.sh > VERSION)
cd src ; $(MAKE) DEBUG=$(DEBUG) ALLOW_INTERNAL_TOOLS=1 FETCH_INTERNAL_TOOLS=1 PACKAGING=1 build-deb-support ;
rm -rf build support/build support/usr ;
yes | debuild -S -sa ;
deb:
cd src ; $(MAKE) DEBUG=$(DEBUG) deb ;
osx:
cd src && $(MAKE) DEBUG=0 BUILD_PORTABLE=1 STATIC=1 FETCH_INTERNAL_TOOLS=1 WEBRESDIR=/usr/share/rethinkdb/web
mkdir -p build/packaging/osx/pkg/usr/bin build/packaging/osx/pkg/usr/share/rethinkdb build/packaging/osx/dmg
cp build/release/rethinkdb build/packaging/osx/pkg/usr/bin/rethinkdb
cp -R build/release/web build/packaging/osx/pkg/usr/share/rethinkdb/web
pkgbuild --root build/packaging/osx/pkg --identifier rethinkdb build/packaging/osx/dmg/rethinkdb.pkg
cp COPYRIGHT build/packaging/osx/dmg/COPYRIGHT
cp packaging/osx/uninstall-rethinkdb.sh build/packaging/osx/dmg/uninstall-rethinkdb.sh
chmod +x build/packaging/osx/dmg/uninstall-rethinkdb.sh
hdiutil create -volname RethinkDB -srcfolder build/packaging/osx/dmg -ov build/packaging/osx/rethinkdb.dmg
.PHONY: all install clean build-deb-src-control build-deb-src deb