blob: 8b0ccacf412892862e2e824961e887a05ab2e631 (
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
|
$NetBSD: patch-aa,v 1.9 2016/04/21 13:37:22 jperkin Exp $
--- Makefile.in.orig 2000-05-04 21:04:20.000000000 +0000
+++ Makefile.in
@@ -50,7 +50,7 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
-mandir = $(exec_prefix)/man/man1
+mandir = $(exec_prefix)/${PKGMANDIR}/man1
CFILES= xplot.c version_string.c coord.c unsigned.c signed.c timeval.c double.c dtime.c
OFILES= xplot.o version_string.o coord.o unsigned.o signed.o timeval.o double.o dtime.o
@@ -62,7 +62,7 @@ MANFILES= xplot.1 tcpdump2xplot.1
all: ${PROG}
${PROG}: ${OFILES}
- ${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS}
+ ${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS} ${LDFLAGS}
-mv -f $@ $@.old
mv -f $@.new $@
@@ -70,11 +70,11 @@ version_string.c: version
echo 'char *version_string = "'`cat version`'";' >version_string.c
install: all
- mkdir -p $(bindir)
- $(INSTALL_PROGRAM) xplot $(bindir)/xplot
- $(INSTALL) tcpdump2xplot.pl $(bindir)/tcpdump2xplot
- mkdir -p $(mandir)
- $(INSTALL_MAN) $(MANFILES) $(mandir)
+ mkdir -p $(DESTDIR)$(bindir)
+ $(INSTALL_PROGRAM) xplot $(DESTDIR)$(bindir)/xplot
+ $(INSTALL) tcpdump2xplot.pl $(DESTDIR)$(bindir)/tcpdump2xplot
+ mkdir -p $(DESTDIR)$(mandir)
+ $(INSTALL_MAN) $(MANFILES) $(DESTDIR)$(mandir)
clean:
rm -f ${PROG} ${PROG}.old *.o version_string.c
|