<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,14 +13,18 @@ Installation:
 2. Run &quot;make install&quot; as root.
 3. Read the manual for per-user setup information.
 
-NOTE: The Makefile uses /usr as destdir and $DESTDIR/man as MANDIR by default.
+NOTE: The Makefile uses /usr as PREFIX and $PREFIX/man as MANDIR by default.
 You can override those on the command line. For example, Debian/Ubuntu users
 usually have their manuals in /usr/share/man, so they would install shell-fm
 like this:
 
-$ make install DESTDIR=/usr MANDIR=/usr/share/man
+$ make install PREFIX=/usr MANDIR=/usr/share/man
 
 NOTE: To install a stripped version of shell-fm (about 10K smaller), use
 &quot;install-strip&quot; instead of &quot;install&quot;:
 
 $ make install-strip
+
+To install to a temporary root (for example, when building a binary
+package), you can use the DESTDIR variable, just like with autotools
+packages.</diff>
      <filename>INSTALL</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 
-DESTDIR	:= /usr
-MANDIR	:= $(DESTDIR)/man
+DESTDIR =
+PREFIX	:= /usr
+MANDIR	:= $(PREFIX)/man
 
 .PHONY			: shell-fm manual all clean tags cscope
 
@@ -13,20 +14,21 @@ manual			:
 	$(MAKE) -C manual
 
 install			:
-	mkdir -p $(DESTDIR)/bin $(MANDIR)/man1
-	install source/shell-fm $(DESTDIR)/bin/shell-fm
-	install manual/shell-fm.1.gz $(MANDIR)/man1
+	install -m 0755 -d $(DESTDIR)$(PREFIX)/bin/
+	install -m 0755 -d $(DESTDIR)$(MANDIR)/man1/
+	install -m 0755 source/shell-fm $(DESTDIR)$(PREFIX)/bin/
+	install -m 0755 manual/shell-fm.1.gz $(DESTDIR)$(MANDIR)/man1/
 
 install-strip	: install
-	strip $(DESTDIR)/bin/shell-fm
+	strip $(PREFIX)/bin/shell-fm
 
 uninstall		:
-	rm -f $(DESTDIR)/bin/shell-fm
+	rm -f $(PREFIX)/bin/shell-fm
 	rm -f $(MANDIR)/man1/shell-fm.1.gz
-	rmdir --ignore-fail-on-non-empty $(DESTDIR)/bin
+	rmdir --ignore-fail-on-non-empty $(PREFIX)/bin
 	rmdir --ignore-fail-on-non-empty $(MANDIR)/man1
 	rmdir --ignore-fail-on-non-empty $(MANDIR)
-	rmdir --ignore-fail-on-non-empty $(DESTDIR)
+	rmdir --ignore-fail-on-non-empty $(PREFIX)
 
 
 clean			:</diff>
      <filename>Makefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>99846147699c1fc9ec4bef69c8af17de44d9f690</id>
    </parent>
  </parents>
  <author>
    <name>Mike Kelly</name>
    <email>pioto@pioto.org</email>
  </author>
  <url>http://github.com/jkramer/shell-fm/commit/07eb1cdd2591fbae109b5b1abf865f9de3c791aa</url>
  <id>07eb1cdd2591fbae109b5b1abf865f9de3c791aa</id>
  <committed-date>2008-09-09T01:11:15-07:00</committed-date>
  <authored-date>2008-09-08T20:34:56-07:00</authored-date>
  <message>Make DESTDIR work the way it does for most other packages.

Signed-off-by: Jonas Kramer &lt;jkramer@nex.scrapping.cc&gt;</message>
  <tree>62fbab6df770723ea1dcc733789dca6bc7d86a22</tree>
  <committer>
    <name>Jonas Kramer</name>
    <email>jkramer@nex.scrapping.cc</email>
  </committer>
</commit>
