aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2009-10-14 07:16:34 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2009-10-14 07:16:34 -0600
commitef7c7b2f2125a7226fcf58beb76f9891ab9908fc (patch)
treef5a692c5a16d488625c2ee087b6271eaced82337 /Makefile
parent87979aa993c4c73374999ca420c8af09fe47ca13 (diff)
fix tests, introduce command tests
includes new tests for set, event/request, print, scroll_*, toggle_status, sync_sh and js
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
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