-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 796 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 796 Bytes
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
TESTS := $(wildcard tests/*/.) $(wildcard tests/*/*/.)
.PHONY: all clean clean-tests clean-libpi clean-all
all:
@echo "Usage:"
@echo " make clean - remove all build artifacts (tests + libpi)"
@echo " make clean-tests - remove test build artifacts only"
@echo " make clean-libpi - remove libpi build artifacts only"
@echo " cd tests/<name> && bash run.sh - build and run a test"
clean: clean-tests clean-libpi
clean-tests:
@for t in $(TESTS); do \
rm -rf $$t/objs $$t/*.bin $$t/*.list $$t/*_shader.c $$t/*_shader.h; \
done
@rm -f pitorch/ops/gemm/*_shader.c pitorch/ops/gemm/*_shader.h
@echo "Cleaned test build artifacts."
clean-libpi:
@make -s -C libpi clean 2>/dev/null || true
@rm -f libpi/libpi.a.list
@echo "Cleaned libpi build artifacts."
clean-all: clean