-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (24 loc) · 1.04 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
BUILDTYPE=Release
all: ./build/out/${BUILDTYPE}/lib.target/geowave.input
debug: BUILDTYPE=Debug
debug: all
release: all
./deps/gyp:
git clone --depth 1 https://chromium.googlesource.com/external/gyp.git ./deps/gyp
ifneq (,$(wildcard config.gypi))
CONFIG = --include=config.gypi
endif
./build/out/${BUILDTYPE}: ./deps/gyp
deps/gyp/gyp geowave-plugin.gyp ${CONFIG} --depth=. -f make --generator-output=./build
./build/out/${BUILDTYPE}/lib.target/libgeowave-plugin.so: ./build/out/${BUILDTYPE}
make -C ./build V=1 BUILDTYPE=${BUILDTYPE}
./build/out/${BUILDTYPE}/lib.target/geowave.input: ./build/out/${BUILDTYPE}/lib.target/libgeowave-plugin.so
mv ./build/out/${BUILDTYPE}/lib.target/libgeowave-plugin.so ./build/out/${BUILDTYPE}/lib.target/geowave.input
clean:
rm -rf ./build
INSTALL_PATH=$(shell cat ./build/out/.plugin_install_path)
install: all
cp ./build/out/${BUILDTYPE}/lib.target/geowave.input ${INSTALL_PATH}
test: all
./build/out/${BUILDTYPE}/geowave-plugin-test ./build/out/${BUILDTYPE}/lib.target/geowave.input
.PHONY: clean install test