From ef7c7b2f2125a7226fcf58beb76f9891ab9908fc Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Wed, 14 Oct 2009 07:16:34 -0600 Subject: fix tests, introduce command tests includes new tests for set, event/request, print, scroll_*, toggle_status, sync_sh and js --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 167881f..36014dd 100644 --- a/Makefile +++ b/Makefile @@ -42,9 +42,13 @@ uzbl-browser: uzbl-core PREFIX?=$(DESTDIR)/usr/local +# the 'tests' target can never be up to date +.PHONY: tests +force: + # When compiling unit tests, compile uzbl as a library first -tests: uzbl-core.o uzbl-events.o - $(CC) -DUZBL_LIBRARY -shared -Wl uzbl-core.o uzbl-events.o -o ./tests/libuzbl-core.so +tests: ${OBJ} force + $(CC) -shared -Wl ${OBJ} -o ./tests/libuzbl-core.so cd ./tests/; $(MAKE) test: uzbl-core -- cgit v1.2.3