aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0dbca93e65b9f9ab4b76b16b72b011ae15d5edcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Installs stanza into /usr/local/bin
# TODO Talk to Patrick to fill this in
root_dir ?= $(PWD)
test_dir ?= $(root_dir)/test
firrtl_dir ?= $(root_dir)/src/main/stanza

all: build check

install-stanza:

build: 
	cd $(firrtl_dir) && stanzam -i firrtl-main.stanza -o $(root_dir)/utils/bin/firrtl

# Runs single test
check: 
	cd $(test_dir)/passes && lit -v . --path=$(root_dir)/utils/bin/

clean:
	rm -f $(test_dir)/passes/*/*.out
	rm -f $(test_dir)/passes/*.out
	rm -f $(test_dir)/*/*.out