aboutsummaryrefslogtreecommitdiffhomepage
path: root/justfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-23 10:15:46 +0900
committernsfisis <nsfisis@gmail.com>2025-08-23 18:44:30 +0900
commit86cb94c72347d7439980e69a69797d6f8a1688d6 (patch)
tree4c262aeb3da553c1227ede44465f050dfa5831aa /justfile
parent8646e6f693fd935c6cb81e776a6c92a3fd093a33 (diff)
downloadducc-86cb94c72347d7439980e69a69797d6f8a1688d6.tar.gz
ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.tar.zst
ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.zip
feat: use "make" as builder
Diffstat (limited to 'justfile')
-rw-r--r--justfile18
1 files changed, 9 insertions, 9 deletions
diff --git a/justfile b/justfile
index d6528a9..d932989 100644
--- a/justfile
+++ b/justfile
@@ -7,13 +7,14 @@ build N="1":
cc=gcc
target=ducc
elif [[ {{N}} = 2 ]]; then
- cc=./ducc
+ cc=./build/ducc
target=ducc{{N}}
else
- cc="./ducc$(({{N}} - 1))"
+ cc="./build/ducc$(({{N}} - 1))"
target=ducc{{N}}
fi
- "$cc" -g -O0 -o "$target" main.c
+ # TODO: Remove --always-make once ducc supports -MD.
+ CC="$cc" TARGET="$target" make --always-make
build-upto-5-gen:
just build 1
@@ -23,9 +24,9 @@ build-upto-5-gen:
just build 5
test-self-hosted: build-upto-5-gen
- diff -u ./ducc2 ./ducc3
- diff -u ./ducc3 ./ducc4
- diff -u ./ducc4 ./ducc5
+ diff -u ./build/ducc2 ./build/ducc3
+ diff -u ./build/ducc3 ./build/ducc4
+ diff -u ./build/ducc4 ./build/ducc5
test TESTCASE="all" $BIN="ducc": build
#!/usr/bin/env bash
@@ -37,11 +38,10 @@ test TESTCASE="all" $BIN="ducc": build
fi
test-all:
- just test-self-hosted
just test all ducc
+ just test-self-hosted
just test all ducc2
clean:
- rm -f main*.s
- rm -f ducc*
+ rm -rf build
rm -rf tests/tmp