1 $NetBSD: patch-aa,v 1.5 2008/10/03 17:42:29 joerg Exp $
3 --- Makefile.orig 1994-07-26 00:59:41.000000000 +0900
8 # destination directory for final executables
9 -DESTDIR = /secureplace/bin
12 # destination for man pages
14 @@ -32,11 +32,11 @@ SHELL = /bin/sh
15 #SHELL = /bin/bash # For the GNU fanatics
17 # you can use ANSI C if you like, but K&R is equally fine.
20 #CC = gcc # also common
21 #CC = /usr/ccs/bin/cc # Pyramid DC/OSx (SVR4)
24 +#CFLAGS = -O # common
26 #CFLAGS = -g # debugging
27 #CFLAGS = -O -cckr # SGI
28 @@ -55,7 +55,7 @@ CFLAGS = -O # common
29 # where int [but not long] is a 32 bit quantity)
31 # a C preprocessor (to build inode.h)
32 -CPP = $(CC) -E # common
33 +#CPP = $(CC) -E # common
34 #CPP = /usr/lib/cpp # on older systems
35 #CPP = /lib/cpp # on older systems
37 @@ -67,7 +67,7 @@ LDFLAGS= # common
38 #LDFLAGS= -dn # Pyramid DC/OSx (SVR4)
43 #LIBS = -lsocket # SCO
44 #LIBS = -lmalloc -lsun -lc_s # IRIX 4.0
46 @@ -77,7 +77,7 @@ LIBS = # common
48 # If you don't have the install command, you need to replace
49 # the use of it later in the makefile with a cp and chmod
50 -INSTALL= /usr/bin/install # common
51 +#INSTALL= /usr/bin/install # common
52 #INSTALL= /usr/ucb/install # Pyramid DC/OSx (SVR4)
53 #INSTALL= /etc/install # Pyramid OSx
54 #INSTALL= /bin/cp # no install
55 @@ -103,8 +103,8 @@ all:
56 YACC="$(YACC)" LEX="$(LEX)" all)
59 - (cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) install)
60 - (cd man; make INSTALL=$(INSTALL) MANDIR=$(MANDIR) install)
61 + (cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR)${PREFIX}/sbin install)
62 + (cd man; make INSTALL=$(INSTALL) MANDIR=$(DESTDIR)$(PREFIX)/${PKGMANDIR} install)
65 (cd tests; make HOSTNAME=$(HOSTNAME) DIST=$(DIST) SHELL=$(SHELL) \