This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive-2/example/makefile
2025-08-18 17:38:51 +02:00

19 lines
328 B
Makefile

CC = clang
NUBC = ../src/compiler/NubLang.CLI/bin/Debug/net9.0/nubc
out: build/out.a
$(CC) -o out build/out.a
build/out.a: $(NUBC) src/main.nub
$(NUBC) src/main.nub
$(NUBC):
dotnet build ../src/compiler/NubLang.CLI/NubLang.CLI.csproj
run: out
./out
clean:
@rm -r build 2>/dev/null || true
@rm out 2>/dev/null || true