51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:37 joerg Exp $
|
|
|
|
--- Makefile.orig 1995-01-31 12:15:22.000000000 -0800
|
|
+++ Makefile 2005-10-04 14:26:20.000000000 -0700
|
|
@@ -68,12 +68,15 @@
|
|
# [13-Sep-1993]
|
|
#=======================================================================
|
|
|
|
-DEST = /usr/local
|
|
+DEST = $(PREFIX)
|
|
|
|
BINDIR = $(DEST)/bin
|
|
|
|
CATDIR = $(DEST)/man/cat1
|
|
|
|
+INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM)
|
|
+INSTALL_MAN = $(BSD_INSTALL_MAN)
|
|
+
|
|
# Compilation with a C++ compiler is preferable. SunOS 4.1 CC cannot be
|
|
# used, however, because of its erroneous function prototypes in stdlib.h
|
|
# which use char* instead of void* in many places. There is no such
|
|
@@ -148,7 +151,7 @@
|
|
LIBS = /usr/lib/debug/malloc.o
|
|
LIBS =
|
|
|
|
-MANDIR = $(DEST)/man/man1
|
|
+MANDIR ?= $(DEST)/man/man1
|
|
|
|
MANEXT = 1
|
|
|
|
@@ -243,16 +246,10 @@
|
|
-$(RM) TAGS
|
|
|
|
install: bibindex biblook
|
|
- -$(CP) bibindex $(BINDIR)
|
|
- -$(STRIP) $(BINDIR)/bibindex
|
|
- -chmod 775 $(BINDIR)/bibindex
|
|
- -$(CP) biblook $(BINDIR)
|
|
- -$(STRIP) $(BINDIR)/biblook
|
|
- -chmod 775 $(BINDIR)/biblook
|
|
- -$(CP) bibindex.man $(MANDIR)/bibindex.$(MANEXT)
|
|
- -chmod 774 $(MANDIR)/bibindex.$(MANEXT)
|
|
- -$(CP) biblook.man $(MANDIR)/biblook.$(MANEXT)
|
|
- -chmod 774 $(MANDIR)/biblook.$(MANEXT)
|
|
+ $(INSTALL_PROGRAM) bibindex ${DESTDIR}$(BINDIR)
|
|
+ $(INSTALL_PROGRAM) biblook ${DESTDIR}$(BINDIR)
|
|
+ $(INSTALL_MAN) bibindex.man ${DESTDIR}$(MANDIR)/bibindex.$(MANEXT)
|
|
+ $(INSTALL_MAN) biblook.man ${DESTDIR}$(MANDIR)/biblook.$(MANEXT)
|
|
|
|
install-ftp: $(FTPFILES)
|
|
-for f in $? ; \
|