Skip to content

Commit 3582f04

Browse files
authored
feat: Makefile for convenience (#1480)
1 parent 114ac09 commit 3582f04

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# this is a simple Makefile meant for developers' convenience
2+
# - it only has the most common build commands we use
3+
# - for any other build command, please use `./build-coatjava.sh`
4+
5+
# convert `make` arg `-j#` -> `mvn` arg `-T#`, if provided
6+
JOBS := $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS)))
7+
THREADS := $(if $(strip $(JOBS)),-T$(JOBS),)
8+
9+
BUILD := ./build-coatjava.sh
10+
11+
.PHONY: default all clean clara
12+
13+
.DEFAULT_GOAL := default
14+
15+
default:
16+
$(BUILD) $(THREADS)
17+
18+
clean:
19+
$(BUILD) --clean $(THREADS)
20+
21+
clara:
22+
$(BUILD) --clara $(THREADS)
23+
24+
all: clara

0 commit comments

Comments
 (0)