8d45d481e1
There are still some Todos, and there are several chunks missing, but those cannot yet be filled in. Overall, this is a reasonable stopping point. Change-Id: Ie9b007b9c2db44927060fdc8974a7d8eb70d2180
21 lines
499 B
Makefile
21 lines
499 B
Makefile
|
|
TOPDIR=$(CURDIR)
|
|
SRCDIR=$(TOPDIR)/congress
|
|
|
|
all: code docs
|
|
|
|
code: CongressLexer.py
|
|
|
|
clean:
|
|
rm -f Congress.tokens $(SRCDIR)/policy/CongressLexer.py $(SRCDIR)/policy/CongressParser.py
|
|
find . -name '*.pyc' -exec rm -f {} \;
|
|
rm -Rf $(TOPDIR)/doc/html/*
|
|
|
|
CongressLexer.py CongressParser.py: $(SRCDIR)/policy/Congress.g
|
|
java -jar $(TOPDIR)/thirdparty/antlr-3.5-complete.jar $(SRCDIR)/policy/Congress.g
|
|
|
|
docs: $(TOPDIR)/doc/source/*.rst
|
|
sphinx-build -b html $(TOPDIR)/doc/source $(TOPDIR)/doc/html
|
|
|
|
|