From ce7554c5951526ab5a392bb4b384ec090cc24d15 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Wed, 11 Nov 2009 12:08:59 +0100 Subject: correctly handle potentially different prefix in sample/default config --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3