0ffc5e843a
Change-Id: I948e390b3368075aa10b8a0564b983f9a8048476
21 lines
503 B
Makefile
21 lines
503 B
Makefile
|
|
TOPDIR=$(CURDIR)
|
|
SRCDIR=$(TOPDIR)/congress
|
|
|
|
all: code docs
|
|
|
|
code: CongressLexer.py
|
|
|
|
clean:
|
|
rm -f Congress.tokens $(SRCDIR)/datalog/CongressLexer.py $(SRCDIR)/datalog/CongressParser.py
|
|
find . -name '*.pyc' -exec rm -f {} \;
|
|
rm -Rf $(TOPDIR)/doc/html/*
|
|
|
|
CongressLexer.py CongressParser.py: $(SRCDIR)/datalog/Congress.g
|
|
java -jar $(TOPDIR)/thirdparty/antlr-3.5-complete.jar $(SRCDIR)/datalog/Congress.g
|
|
|
|
docs: $(TOPDIR)/doc/source/*.rst
|
|
sphinx-build -b html $(TOPDIR)/doc/source $(TOPDIR)/doc/html
|
|
|
|
|