aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-09-05 19:22:30 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-09-05 19:22:30 +0200
commitb9013fb779379c502b7707169eeac7dc15cfdd51 (patch)
tree8823d05881095396d90c12b01339d1c0acadc143 /Makefile
parentac0be803633a44848f931d43bfd7f9f0faaaa1c4 (diff)
move 'uzbl' to more specific 'uzbl-core' program, and add 'uzbl-browser' script which wraps around it to make the browser
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 15 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 498791d..8bda961 100644
--- a/Makefile
+++ b/Makefile
@@ -8,43 +8,46 @@ LDFLAGS!=echo `pkg-config --libs gtk+-2.0 webkit-1.0 libsoup-2.4 gthread-2.0` -p
all: uzbl
+uzbl: uzbl-core
+
PREFIX?=$(DESTDIR)/usr/local
# When compiling unit tests, compile uzbl as a library first
-tests: uzbl.o
- $(CC) -DUZBL_LIBRARY -shared -Wl uzbl.o -o ./tests/libuzbl.so
+tests: uzbl-core.o
+ $(CC) -DUZBL_LIBRARY -shared -Wl uzbl-core.o -o ./tests/libuzbl-core.so
cd ./tests/; $(MAKE)
test: uzbl
- ./uzbl --uri http://www.uzbl.org --verbose
+ PATH="`pwd`:$$PATH" ./uzbl-browser --uri http://www.uzbl.org --verbose
test-dev: uzbl
- XDG_DATA_HOME=./examples/data XDG_CONFIG_HOME=./examples/config ./uzbl --uri http://www.uzbl.org --verbose
+ XDG_DATA_HOME=./examples/data XDG_CONFIG_HOME=./examples/config ./uzbl-browser --uri http://www.uzbl.org --verbose
test-dev-dispatched: uzbl
- XDG_DATA_HOME=./examples/data XDG_CONFIG_HOME=./examples/config ./uzbl --uri http://www.uzbl.org --verbose | ./examples/data/uzbl/scripts/event_manager.py
+ XDG_DATA_HOME=./examples/data XDG_CONFIG_HOME=./examples/config ./uzbl-browser --uri http://www.uzbl.org --verbose | ./examples/data/uzbl/scripts/event_manager.py
test-share: uzbl
- XDG_DATA_HOME=${PREFIX}/share/uzbl/examples/data XDG_CONFIG_HOME=${PREFIX}/share/uzbl/examples/config ./uzbl --uri http://www.uzbl.org --verbose
+ XDG_DATA_HOME=${PREFIX}/share/uzbl/examples/data XDG_CONFIG_HOME=${PREFIX}/share/uzbl/examples/config ./uzbl-browser --uri http://www.uzbl.org --verbose
clean:
- rm -f uzbl
- rm -f uzbl.o
+ rm -f uzbl-core
+ rm -f uzbl-core.o
cd ./tests/; $(MAKE) clean
install:
install -d $(PREFIX)/bin
install -d $(PREFIX)/share/uzbl/docs
install -d $(PREFIX)/share/uzbl/examples
- install -m755 uzbl $(PREFIX)/bin/uzbl
cp -rp docs $(PREFIX)/share/uzbl/
cp -rp config.h $(PREFIX)/share/uzbl/docs/
cp -rp examples $(PREFIX)/share/uzbl/
- install -m644 AUTHORS $(PREFIX)/share/uzbl/docs
- install -m644 README $(PREFIX)/share/uzbl/docs
+ install -m755 uzbl-core $(PREFIX)/bin/uzbl-core
+ install -m755 uzbl-browser $(PREFIX)/bin/uzbl-browser
+ install -m644 AUTHORS $(PREFIX)/share/uzbl/docs
+ install -m644 README $(PREFIX)/share/uzbl/docs
uninstall:
- rm -rf $(PREFIX)/bin/uzbl
+ rm -rf $(PREFIX)/bin/uzbl-*
rm -rf $(PREFIX)/share/uzbl