-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (49 loc) · 1.84 KB
/
Copy pathMakefile
File metadata and controls
58 lines (49 loc) · 1.84 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
BOARD ?= 9k
DAYS := $(sort $(wildcard day*_completed))
# SVFILES = \( -name '*.sv' -o -name '*.svh' \)
SVFILES = \( -name '*.sv' -o -name '*.svh' \)
.PHONY: all clean help test sim format build
all: build
build:
@echo "Building all projects (BOARD=$(BOARD))"
@for day in $(DAYS); do \
echo "************************************************"; \
echo "* Building $$day (BOARD=$(BOARD))"; \
echo "************************************************"; \
$(MAKE) -C $$day BOARD=$(BOARD); \
done
sim:
@echo "Running simulation for all projects (BOARD=$(BOARD))"
@for day in $(DAYS); do \
echo "************************************************"; \
echo "* Running sim for $$day (BOARD=$(BOARD))"; \
echo "************************************************"; \
$(MAKE) -C $$day BOARD=$(BOARD) sim; \
done
test: sim
format:
@echo "Formatting all projects"
pnpm dlx markdownlint-cli "**/*.md" --ignore "conductor/**" --ignore "CLAUDE.md" --ignore "AGENTS.md" --fix
pnpm dlx textlint --fix "**/*.md"
find . $(SVFILES) -not -path "./conductor/*" -print0 | xargs -0 verible-verilog-format --inplace --indentation_spaces=4 --column_limit=100
clean:
@echo "Cleaning all projects"
@for day in $(DAYS); do \
echo "************************************************"; \
echo "* Cleaning $$day"; \
echo "************************************************"; \
$(MAKE) -C $$day clean; \
done
help:
@echo "Build every day*_completed project for Tang Nano boards."
@echo
@echo "Usage:"
@echo " make BOARD=<9k|20k>"
@echo " make BOARD=20k # builds each day for 20k"
@echo " make sim # runs simulation for each day"
@echo
@echo "Available targets:"
@echo " all - build every project (default)"
@echo " sim - run simulation for every project"
@echo " clean - run clean in every day directory"
@echo " help - show this message"