36 lines
893 B
Plaintext
36 lines
893 B
Plaintext
$OpenBSD: patch-Makefile,v 1.4 2011/11/28 15:53:06 dcoppa Exp $
|
|
--- Makefile.orig Mon Nov 28 11:16:21 2011
|
|
+++ Makefile Mon Nov 28 15:22:33 2011
|
|
@@ -1,12 +1,16 @@
|
|
|
|
DESTDIR =
|
|
-PREFIX := /usr
|
|
+
|
|
+ifeq (${PREFIX},)
|
|
+PREFIX = /usr
|
|
+endif
|
|
+
|
|
MANDIR := $(PREFIX)/man
|
|
DOCDIR := ${PREFIX}/share/doc
|
|
|
|
.PHONY : shell-fm manual all clean tags cscope install
|
|
|
|
-all : shell-fm manual
|
|
+all : shell-fm
|
|
|
|
shell-fm :
|
|
$(MAKE) -C source
|
|
@@ -15,10 +19,8 @@ manual :
|
|
$(MAKE) -C manual
|
|
|
|
install :
|
|
- 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 0644 manual/shell-fm.1.gz $(DESTDIR)$(MANDIR)/man1/
|
|
+ ${INSTALL_PROGRAM} source/shell-fm $(PREFIX)/bin/
|
|
+ ${INSTALL_MAN} manual/shell-fm.1 $(MANDIR)/man1/
|
|
|
|
install-extras :
|
|
install -m 0755 -d $(DESTDIR)$(DOCDIR)/shell-fm/
|