aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2010-03-15 02:59:00 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2010-03-15 03:19:25 +0800
commit6789c9b04c152a0df36a687b3e95c367dd369e80 (patch)
treed98ec3ce20f9fbb296da5b739c5d292143515616 /Makefile
parentd621cda943e972b2a2a0a8c9a6febb30c6df94f4 (diff)
Modify Makefile install targets to set the correct owner and groups
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 7d1b386..c592d06 100644
--- a/Makefile
+++ b/Makefile
@@ -88,28 +88,26 @@ strip:
install: install-uzbl-core install-uzbl-browser install-uzbl-tabbed
install-uzbl-core: all
- install -d $(INSTALLDIR)/bin
+ install -d $(INSTALLDIR)/share/uzbl/
install -d $(DOCDIR)
- install -d $(INSTALLDIR)/share/uzbl/examples
- cp -rp docs/* $(DOCDIR)/
- cp -rp src/config.h $(DOCDIR)/
- cp -rp examples $(INSTALLDIR)/share/uzbl/
- install -m755 uzbl-core $(INSTALLDIR)/bin/uzbl-core
- install -m644 AUTHORS $(DOCDIR)
- install -m644 README $(DOCDIR)
+ install -m644 docs/* $(DOCDIR)/
+ install -m644 src/config.h $(DOCDIR)/
+ install -m644 README $(DOCDIR)/
+ install -m644 AUTHORS $(DOCDIR)/
+ cp -r examples $(INSTALLDIR)/share/uzbl/
+ chmod 755 $(INSTALLDIR)/share/uzbl/examples/data/scripts/*
sed -i 's#^set prefix.*=.*#set prefix = $(RUN_PREFIX)#' $(INSTALLDIR)/share/uzbl/examples/config/config
+ install -D -m755 uzbl-core $(INSTALLDIR)/bin/uzbl-core
install-uzbl-browser:
- install -d $(INSTALLDIR)/bin
- install -m755 src/uzbl-browser $(INSTALLDIR)/bin/uzbl-browser
- install -m755 examples/data/scripts/uzbl-cookie-daemon $(INSTALLDIR)/bin/uzbl-cookie-daemon
- install -m755 examples/data/scripts/uzbl-event-manager $(INSTALLDIR)/bin/uzbl-event-manager
+ install -D -m755 src/uzbl-browser $(INSTALLDIR)/bin/uzbl-browser
+ install -D -m755 examples/data/scripts/uzbl-cookie-daemon $(INSTALLDIR)/bin/uzbl-cookie-daemon
+ install -D -m755 examples/data/scripts/uzbl-event-manager $(INSTALLDIR)/bin/uzbl-event-manager
sed -i 's#^PREFIX=.*#PREFIX=$(RUN_PREFIX)#' $(INSTALLDIR)/bin/uzbl-browser
sed -i "s#^PREFIX = .*#PREFIX = '$(RUN_PREFIX)'#" $(INSTALLDIR)/bin/uzbl-event-manager
install-uzbl-tabbed:
- install -d $(INSTALLDIR)/bin
- install -m755 examples/data/scripts/uzbl-tabbed $(INSTALLDIR)/bin/uzbl-tabbed
+ install -D -m755 examples/data/scripts/uzbl-tabbed $(INSTALLDIR)/bin/uzbl-tabbed
# you probably only want to do this manually when testing and/or to the sandbox. not meant for distributors
install-example-data: