projects
/
uzbl-mobile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge uranthers stuff
[uzbl-mobile]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
b0c4e54
..
501a859
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-10,6
+10,11
@@
all: uzbl uzblctrl
PREFIX?=$(DESTDIR)/usr
PREFIX?=$(DESTDIR)/usr
+# When compiling unit tests, compile uzbl as a library first
+tests: uzbl.o
+ $(CC) -DUZBL_LIBRARY -shared -Wl uzbl.o -o ./tests/libuzbl.so
+ cd ./tests/; $(MAKE)
+
test: uzbl
./uzbl --uri http://www.uzbl.org --verbose
test: uzbl
./uzbl --uri http://www.uzbl.org --verbose
@@
-23,6
+28,8
@@
test-share: uzbl
clean:
rm -f uzbl
rm -f uzblctrl
clean:
rm -f uzbl
rm -f uzblctrl
+ rm -f uzbl.o
+ cd ./tests/; $(MAKE) clean
install:
install -d $(PREFIX)/bin
install:
install -d $(PREFIX)/bin