30 lines
819 B
Text
30 lines
819 B
Text
$NetBSD: patch-aa,v 1.7 2012/03/09 12:49:25 fhajny Exp $
|
|
|
|
--- Makefile.orig 2005-05-26 03:39:40.000000000 +0000
|
|
+++ Makefile
|
|
@@ -3,7 +3,7 @@ MINOR=1
|
|
CC?=gcc
|
|
CFLAGS?=-g -O2 -Wall
|
|
CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
|
|
-prefix?=/usr/local
|
|
+prefix?=${PREFIX}
|
|
OBJS=\
|
|
cbtcommon/debug.o\
|
|
cbtcommon/hash.o\
|
|
@@ -21,13 +21,13 @@ OBJS=\
|
|
all: cvsps
|
|
|
|
cvsps: $(OBJS)
|
|
- $(CC) -o cvsps $(OBJS) -lz
|
|
+ $(CC) $(LDFLAGS) -o cvsps $(OBJS) -lz $(LIBS)
|
|
|
|
install:
|
|
[ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
|
|
- [ -d $(prefix)/share/man/man1 ] || mkdir -p $(prefix)/share/man/man1
|
|
+ [ -d $(prefix)/man/man1 ] || mkdir -p $(prefix)/man/man1
|
|
install cvsps $(prefix)/bin
|
|
- install -m 644 cvsps.1 $(prefix)/share/man/man1
|
|
+ install -m 644 cvsps.1 $(prefix)/$(PKGMANDIR)/man1
|
|
|
|
clean:
|
|
rm -f cvsps *.o cbtcommon/*.o core
|