From 6789c9b04c152a0df36a687b3e95c367dd369e80 Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Mon, 15 Mar 2010 02:59:00 +0800 Subject: Modify Makefile install targets to set the correct owner and groups --- Makefile | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3