congress/Makefile
Tim Hinrichs 0ffc5e843a Fix Makefile for new congress/datalog directory
Change-Id: I948e390b3368075aa10b8a0564b983f9a8048476
2015-03-02 10:36:17 -08:00

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