Clean up root Makefile, add 'test' target

This commit is contained in:
R. Tyler Croy 2011-02-13 12:11:48 -08:00
parent cb33969847
commit 0578c9e16a
1 changed files with 11 additions and 6 deletions

View File

@ -2,16 +2,21 @@ GPRBUILD=gprbuild
GPRCLEAN=gprclean
TESTRUNNER=testrunner
lib:
mkdir -p build
lib: pre
$(GPRBUILD) -p epoll.gpr
syntax:
mkdir -p build
syntax: pre
gnatmake -gnatc -gnat05 -P epoll.gpr
clean:
clean: pre
for d in tests/*; do echo "> $$d"; (cd $$d && make clean); done
$(GPRCLEAN) epoll.gpr
rm -rf build
.PHONY: syntax lib
pre:
mkdir -p build
test: pre lib
for d in tests/*; do echo "> $$d"; (cd $$d && make run); done
.PHONY: syntax lib test