Skip to content

Commit d29d7ba

Browse files
committed
Makefiles are updated
1 parent 83217eb commit d29d7ba

File tree

54 files changed

+153
-497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+153
-497
lines changed

tests/instance_/Makefile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
TARGET=*.py
2-
ARGS=
3-
41
PYTHON=python3
52
#PYTHON=python
6-
#OPT=-m pdb
7-
#OPT=-m cProfile -s time
8-
#OPT=-m cProfile -o profile.rslt
93

104
.PHONY: all
11-
all: test
12-
13-
.PHONY: run
14-
run:
15-
$(PYTHON) $(OPT) $(TARGET) $(ARGS)
5+
all: clean
166

177
.PHONY: test
188
test:
199
$(PYTHON) -m pytest -vv
2010

21-
.PHONY: check
22-
check:
23-
$(PYTHON) $(OPT) $(TARGET) $(ARGS) > tmp.v
24-
iverilog -tnull -Wall tmp.v
25-
rm -f tmp.v
11+
.PHONY: run
12+
run:
13+
find . -maxdepth 1 -type d |grep "./" | xargs -I {} make run -C {}
2614

2715
.PHONY: clean
2816
clean:
29-
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
17+
rm -rf *.pyc __pycache__ parsetab.py *.out .cache
18+
find . -maxdepth 1 -type d |grep "./" | xargs -I {} make clean -C {}

tests/instance_/named_args/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -27,4 +26,4 @@ check:
2726

2827
.PHONY: clean
2928
clean:
30-
rm -rf *.pyc __pycache__ parsetab.py *.out
29+
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd

tests/instance_/noname_args/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -27,4 +26,4 @@ check:
2726

2827
.PHONY: clean
2928
clean:
30-
rm -rf *.pyc __pycache__ parsetab.py *.out
29+
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd

tests/lib_fsm_/Makefile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
1-
TARGET=*.py
2-
ARGS=
3-
41
PYTHON=python3
52
#PYTHON=python
6-
#OPT=-m pdb
7-
#OPT=-m cProfile -s time
8-
#OPT=-m cProfile -o profile.rslt
93

104
.PHONY: all
11-
all: test
12-
13-
.PHONY: run
14-
run:
15-
$(PYTHON) $(OPT) $(TARGET) $(ARGS)
5+
all: clean
166

177
.PHONY: test
188
test:
199
$(PYTHON) -m pytest -vv
2010

21-
.PHONY: check
22-
check:
23-
$(PYTHON) $(OPT) $(TARGET) $(ARGS) > tmp.v
24-
iverilog -tnull -Wall tmp.v
25-
rm -f tmp.v
11+
.PHONY: run
12+
run:
13+
find . -maxdepth 1 -type d |grep "./" | xargs -I {} make run -C {}
2614

2715
.PHONY: clean
2816
clean:
29-
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
17+
rm -rf *.pyc __pycache__ parsetab.py *.out .cache
18+
find . -maxdepth 1 -type d |grep "./" | xargs -I {} make clean -C {}

tests/lib_fsm_/branch/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -27,4 +26,4 @@ check:
2726

2827
.PHONY: clean
2928
clean:
30-
rm -rf *.pyc __pycache__ parsetab.py *.out
29+
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd

tests/lib_fsm_/delayed/Makefile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -28,12 +27,3 @@ check:
2827
.PHONY: clean
2928
clean:
3029
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
31-
32-
.PHONY: sim
33-
sim:
34-
iverilog -Wall tmp.v
35-
./a.out
36-
37-
.PHONY: view
38-
view:
39-
gtkwave --giga uut.vcd &

tests/lib_fsm_/delayed_cond/Makefile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -28,12 +27,3 @@ check:
2827
.PHONY: clean
2928
clean:
3029
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
31-
32-
.PHONY: sim
33-
sim:
34-
iverilog -Wall tmp.v
35-
./a.out
36-
37-
.PHONY: view
38-
view:
39-
gtkwave --giga uut.vcd &

tests/lib_fsm_/delayed_eager_val/Makefile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -28,12 +27,3 @@ check:
2827
.PHONY: clean
2928
clean:
3029
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
31-
32-
.PHONY: sim
33-
sim:
34-
iverilog -Wall tmp.v
35-
./a.out
36-
37-
.PHONY: view
38-
view:
39-
gtkwave --giga uut.vcd &

tests/lib_fsm_/delayed_eager_val_lazy_cond/Makefile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -28,12 +27,3 @@ check:
2827
.PHONY: clean
2928
clean:
3029
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
31-
32-
.PHONY: sim
33-
sim:
34-
iverilog -Wall tmp.v
35-
./a.out
36-
37-
.PHONY: view
38-
view:
39-
gtkwave --giga uut.vcd &

tests/lib_fsm_/delayed_lazy_cond/Makefile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
TARGET=led.py
2-
TEST=test_led.py
1+
TARGET=*.py
32
ARGS=
43

54
PYTHON=python3
@@ -17,7 +16,7 @@ run:
1716

1817
.PHONY: test
1918
test:
20-
$(PYTHON) -m pytest -vv $(TEST)
19+
$(PYTHON) -m pytest -vv
2120

2221
.PHONY: check
2322
check:
@@ -28,12 +27,3 @@ check:
2827
.PHONY: clean
2928
clean:
3029
rm -rf *.pyc __pycache__ parsetab.py *.out tmp.v uut.vcd
31-
32-
.PHONY: sim
33-
sim:
34-
iverilog -Wall tmp.v
35-
./a.out
36-
37-
.PHONY: view
38-
view:
39-
gtkwave --giga uut.vcd &

0 commit comments

Comments
 (0)