aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-11-11 12:08:59 +0100
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-11-11 12:08:59 +0100
commitce7554c5951526ab5a392bb4b384ec090cc24d15 (patch)
treed8f23b6b432da1f13bc05839cd053e19387fcf06 /Makefile
parent8d35b85b0bc2ed1fb429d08d6a77ca1a1a038f7a (diff)
correctly handle potentially different prefix in sample/default config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b0cb868..321ec82 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,7 @@ uzbl-core: ${OBJ}
uzbl-browser: uzbl-core
# packagers, set DESTDIR to your "package directory" and PREFIX to the prefix you want to have on the end-user system
+# end-users who build from source: don't care about DESTDIR, update PREFIX if you want to
PREFIX?=/usr/local
INSTALLDIR?=$(DESTDIR)$(PREFIX)
@@ -102,6 +103,7 @@ install-uzbl-browser: all
install -m755 examples/data/uzbl/scripts/uzbl-event-manager $(INSTALLDIR)/bin/uzbl-event-manager
sed -i 's#^PREFIX=.*#PREFIX=$(PREFIX)#' $(INSTALLDIR)/bin/uzbl-browser
sed -i "s#^PREFIX = None#PREFIX = '$(PREFIX)'#" $(INSTALLDIR)/bin/uzbl-event-manager
+ sed -i 's#^set prefix.*=.*#set prefix = $(PREFIX)#' $(INSTALLDIR)/share/uzbl/examples/config/uzbl/config
install-uzbl-tabbed: all
install -d $(INSTALLDIR)/bin