diff options
author | jjsuperpower <jjs29356@gmail.com> | 2022-09-05 20:10:16 -0500 |
---|---|---|
committer | jjsuperpower <jjs29356@gmail.com> | 2022-09-05 20:10:16 -0500 |
commit | cb06c203a8e9f57d0ff61bf55007946b4eb542ef (patch) | |
tree | 9167a1f99edebdc4c9c31850f800435a70a77f6c /Makefile | |
parent | 63626f2f6fc7e8912a349f120e37998cd1a05554 (diff) |
honestly i don't know what I did
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 27 insertions, 10 deletions
@@ -1,21 +1,38 @@ +ROOT_DIR := $(shell pwd) +HDL_FOLDER := ./hdl +PYTHONPATH := $(ROOT_DIR) -HDL_FOLDER = ./hdl -HDL = $(wildcard $(HDL_FOLDER)/*.py) +GEN_VERILOG := $(HDL_FOLDER)/gen_verilog +GEN_CXXRTL := $(HDL_FOLDER)/gen_cxxrtl +GEN_VCD := $(HDL_FOLDER)/gen_vcd + +HDL := $(wildcard $(HDL_FOLDER)/**/*.py) + +all: test sim: $(HDL) - python3 $< sim + echo 'Deprecated, FU' +# cude but simple, and works... cc: $(HDL) - python3 $< cc $(basename $< .py) + export PYTHONPATH=$(PYTHONPATH) + for file in $(HDL); do \ + python3 $$file cc; \ + done -v: $(HDL) - python3 $< v +# cude but simple, and works... +v: + export PYTHONPATH=$(PYTHONPATH) + for file in $(HDL); do \ + python3 $$file v; \ + done test: - py.test --disable-pytest-warnings -v $(HDL) + export PYTHONPATH=$(PYTHONPATH); py.test -v $(HDL) -test-w: - py.test -v $(HDL) +# disable pytest warnings +test-nw: + export PYTHONPATH=$(PYTHONPATH); py.test --disable-pytest-warnings -v $(HDL) clean: - $(RM) -rf $(HDL_FOLDER)/*.cc $(HDL_FOLDER)/*.v $(HDL_FOLDER)/*.vcd $(HDL_FOLDER)/*.pyc $(HDL_FOLDER)/*.out $(HDL_FOLDER)/*.bak
\ No newline at end of file + $(RM) $(GEN_VERILOG)/*.v $(GEN_CXXRTL)/*.cc $(GEN_VCD)/*.vcd
\ No newline at end of file |