blob: 3fdf219c356260a4bb4943e36d5144e9ce2c2f8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
$NetBSD: patch-aa,v 1.4 2010/02/01 02:51:30 joerg Exp $
--- Makefile.orig Sat May 4 03:45:07 2002
+++ Makefile
@@ -29,21 +29,21 @@
# Configure the destination directories:
#
#BINDIR=/usr/local/bin
-BINDIR=/usr/bin
+BINDIR=${PREFIX}/bin
#MANDIR=/usr/local/man/man1
-MANDIR=/usr/man/man1
+MANDIR=${PREFIX}/${PKGMANDIR}/man1
#DOCDIR=/usr/local/doc/clara
#DOCDIR=/usr/doc/clara
#DOCDIR=/usr/doc/clara-$(VERSION)
-DOCDIR=/usr/share/doc/clara
+DOCDIR=${PREFIX}/share/doc/clara
#
# Configure these variables accordingly to your system:
#
-INCLUDE = -I/usr/X11R6/include
-LIBPATH = -L/usr/X11R6/lib
+INCLUDE = -I${X11BASE}/include -I${LOCALBASE}/include
+LIBPATH = -L${X11BASE}/lib -L${LOCALBASE}/include
CC = gcc
#
@@ -85,7 +85,7 @@
#
# Add or remove flags if necessary:
#
-CFLAGS = $(INCLUDE) -g -Wall $(COPTS)
+CFLAGS += $(INCLUDE) -g -Wall $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -Wall $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 -pedantic $(COPTS)
#CFLAGS = $(INCLUDE) -g -O2 $(COPTS)
@@ -93,7 +93,7 @@
#
# Add or remove flags if necessary:
#
-LDFLAGS = -g
+LDFLAGS += -g
#
# If your system requires additional libs, please add them:
@@ -175,13 +175,10 @@
./clara -p 2
install: all
- install -d $(BINDIR)
- install clara $(BINDIR)
- install selthresh.pl $(BINDIR)
- install -d $(MANDIR)
- install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
- install -d $(DOCDIR)
- install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
+ ${BSD_INSTALL_PROGRAM} clara ${DESTDIR}$(BINDIR)
+ ${BSD_INSTALL_SCRIPT} selthresh.pl ${DESTDIR}$(BINDIR)
+ ${BSD_INSTALL_MAN} doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 ${DESTDIR}$(MANDIR)
+ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html ${DESTDIR}$(DOCDIR)
clean:
rm -f clara sclara $(OBJS) doc/clara*.1 doc/clara*.html doc/FAQ
|