Skip to content

Commit 8be945c

Browse files
committed
Add just and make as build system
Make handles the manual (as there is no seperate build system). Just invokes make and gradle.
1 parent 6fcee7e commit 8be945c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

justfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
default:
3+
@just --list
4+
5+
build:
6+
just build-manual
7+
./gradlew shadowJar sourcesJar javadocJar
8+
9+
build-manual:
10+
make manual/SGE-MANUAL.pdf
11+
12+
lint:
13+
just lint-typst-all
14+
15+
lint-typst *FILES:
16+
typstyle --check {{ FILES }}
17+
18+
lint-typst-all:
19+
typstyle --check format-all manual/
20+
21+
fix:
22+
just fix-typst-all
23+
24+
fix-typst *FILES:
25+
typstyle --inplace {{ FILES }}
26+
27+
fix-typst-all:
28+
typstyle --inplace format-all manual/

makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
SGE_MANUAL_IMAGE_FILES := $(wildcard manual/*.png)
3+
4+
manual/SGE-MANUAL.pdf: manual/SGE-MANUAL.typ manual/template.typ $(SGE_MANUAL_IMAGE_FILES)
5+
typst compile $< $@

0 commit comments

Comments
 (0)