From 299b503c00fef9176939bf4262ca7fcb9c98c653 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 21 Feb 2012 19:05:35 +0100 Subject: [PATCH] separate targets to build and run tests --- Makefile | 2 +- tests/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8bce7a7..56469a2 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ gdb: debug cgdb ${PROJECT}-debug tests: ${OBJECTS} - $(QUIET)make -C tests + $(QUIET)make -C tests run dist: clean $(QUIET)mkdir -p ${PROJECT}-${VERSION} diff --git a/tests/Makefile b/tests/Makefile index bcb0630..589bfef 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -21,7 +21,7 @@ ZSOURCE += ../database-plain.c endif endif -all: ${PROJECT} run +all: ${PROJECT} run: ${PROJECT} $(QUIET)./${PROJECT} @@ -48,6 +48,6 @@ ${OBJECTS}: ../config.mk clean: $(QUIET)rm -rf ${OBJECTS} ${PROJECT} *.gcno *.gcda -.PHONY: all options clean debug +.PHONY: all options clean debug run -include $(wildcard .depend/*.dep)