about summary refs log blame commit diff stats
path: root/cpp/build_and_test_until
blob: 6c4696043b47be9daef972ab9e85bec4d3ce968e (plain) (tree)
267ebb5
#!/bin/sh
# Load all files sorting before the given argument.
# You can pass in a prefix, but files matching the prefix *won't* be included.

set -e
set -v
make tangle/tangle
make enumerate/enumerate
./tangle/tangle $(./enumerate/enumerate --until $* |grep -v '.mu$') |grep -v "^\s*//:" > mu.cc
cat /dev/null $(./enumerate/enumerate --until $* |grep '.mu$') > core.mu
make autogenerated_lists
g++ -g -Wall -Wextra -fno-strict-aliasing mu.cc -o mu
./mu test
"w"> $(shell pwd) default: compile @echo 'Run `make options` for a list of all options' options: help @echo @echo 'Options:' @echo 'PYTHON = $(PYTHON)' @echo 'PYOPTIMIZE = $(PYOPTIMIZE)' @echo 'DOCDIR = $(DOCDIR)' help: @echo 'make install: Install $(NAME)' @echo 'make doc: Create the pydoc documentation' @echo 'make clean: Remove the compiled files (*.pyc, *.pyo)' @echo 'make cleandoc: Remove the pydoc documentation' @echo 'make snapshot: Create a tar.gz of the current git revision' @echo 'make test: Run all unittests.' install: $(PYTHON) setup.py install $(SETUPOPTS) \ '--root=$(DESTDIR)' --optimize=$(PYOPTIMIZE) compile: clean PYTHONOPTIMIZE=$(PYOPTIMIZE) $(PYTHON) -m compileall -q ranger clean: find . -regex .\*.py[co]\$$ -exec rm -f -- {} \; doc: cleandoc mkdir -p $(DOCDIR) cd $(DOCDIR); \ $(PYTHON) -c 'import pydoc, sys; \ sys.path[0] = "$(CWD)"; \ pydoc.writedocs("$(CWD)")' rm $(DOCDIR)/test* cleandoc: test -d $(DOCDIR) && rm -f -- $(DOCDIR)/*.html test: @$(PYTHON) test/all_tests.py 1 bm: @$(PYTHON) test/all_benchmarks.py $(BMCOUNT) snapshot: git archive --prefix='$(NAME)-$(VERSION)/' --format=tar HEAD | gzip > $(SNAPSHOT_NAME) .PHONY: default options compile clean doc cleandoc test bm snapshot install