-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.03 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.03 KB
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
40
41
42
43
# Makefile for FFM Reference
JEXTRACT_BIN ?= /home/omar/Descargas/jextract-25/bin/jextract
MVN_JEXTRACT_FLAG := $(if $(JEXTRACT_BIN),-Djextract.bin=$(JEXTRACT_BIN))
MVN := mvn $(MVN_JEXTRACT_FLAG)
.PHONY: help format-build build format clean test verify native-lib
help:
@echo "Available targets:"
@echo ""
@echo "Global:"
@echo " format-build Format and compile (skip tests)"
@echo " build Build the entire project with tests"
@echo " format Format code only"
@echo " clean Clean build artifacts"
@echo " test Run tests"
@echo " verify Check formatting + verify"
@echo ""
@echo "Native:"
@echo " native-lib Build the native C library (svc)"
# --- Global ---
format-build:
$(MVN) spotless:apply && $(MVN) compile -DskipTests && $(MVN) spotless:apply
build:
$(MVN) install -DskipITs
format:
$(MVN) spotless:apply
clean:
$(MVN) clean
test:
$(MVN) test
verify:
$(MVN) spotless:check && $(MVN) verify
# --- Native library ---
native-lib:
$(MAKE) -C simple-ffm-demo/native-lib