aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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