-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (30 loc) · 918 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
34
35
36
37
38
39
.SILENT:
INSTALL_PREFIX?="$(HOME)"
JAR_NAME="dshell.jar"
BIN_NAME="dshell"
TOOLS_DIR="./tools"
all: build
build:
cd ./ext/libbun; git stash && git stash clear
git submodule update
cd ./ext/libbun; git apply ../libbun.patch
ant
clean: clean-launcher
ant clean
clean-launcher:
make -C $(TOOLS_DIR)/launcher clean
install:
echo "install dshell to $(INSTALL_PREFIX)/bin"
install -d $(INSTALL_PREFIX)/bin
make -C $(TOOLS_DIR)/launcher JAR_PREFIX=$(INSTALL_PREFIX)/bin
cp -f $(JAR_NAME) $(INSTALL_PREFIX)/bin/
install -m 775 $(TOOLS_DIR)/launcher/$(BIN_NAME) $(INSTALL_PREFIX)/bin/
test:
TEST_DIR=./test ./test/test_all.sh
self-test:
cd ./tools/test-dshell/; ant clean; ant; cp ./test-dshell.jar ../../
TEST_DIR=./test dshell ./test/run_test.ds
test-rec:
#USAGE: make test-rec URL=http://www.ubicg.ynu.ac.jp/Rec/api/3.0
TEST_DIR=./test ./test/test_all.sh $(URL)
.PHONY: all build clean install test