2016-11-18 22:39:22 +01:00

40 lines
1.3 KiB
Plaintext

$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