Skip to content

Commit

Permalink
add a "make test" target
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKuzminsky committed Mar 27, 2016
1 parent d6c88c6 commit f5f2f59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vhdl/Makefile
Expand Up @@ -7,7 +7,7 @@ OBJS = vhdl_parser.tab.o vhdl_lexer.o vhdl_frontend.o preproc.o

vhdl.so: vhdl_parser.tab.o vhdl_lexer.o vhdl_frontend.o preproc.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS)
cd test; ./runtests
$(MAKE) test

vhdl_parser.tab.cc: vhdl_parser.y def.h
bison -d -r all -b vhdl_parser $<
Expand All @@ -18,6 +18,10 @@ vhdl_parser.tab.h: vhdl_parser.tab.cc
vhdl_lexer.cc: vhdl_lexer.l def.h vhdl_parser.tab.h
flex -d -i -o $@ $<

.PHONY: test
test:
cd test; ./runtests

clean:
rm -f *.d *.o vhdl.so vhdl_lexer.cc vhdl_parser.output vhdl_parser.tab.cc vhdl_parser.tab.h

0 comments on commit f5f2f59

Please sign in to comment.