[BACK]Return to patch-Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / ywho / patches

File: [cvs.NetBSD.org] / pkgsrc / net / ywho / patches / patch-Makefile (download)

Revision 1.2, Sat Jun 23 22:52:35 2012 UTC (8 years, 3 months ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, HEAD
Changes since 1.1: +12 -6 lines

Honor pkgsrc LIBS.

$NetBSD: patch-Makefile,v 1.2 2012/06/23 22:52:35 dholland Exp $

 - Honor PKGMANDIR.
 - Honor pkgsrc LIBS.

--- Makefile.orig	2000-12-17 17:08:52.000000000 +0000
+++ Makefile
@@ -7,9 +7,11 @@ SHELL		= /bin/sh
 CFLAGS		= -O2 -Wall # -g -DDEBUG
 LDFLAGS		= # -g
 DEST		= /usr/local
+PKGMANDIR	= man
 OBJS		= ywho.o xdr.o
 SRCS		= ywho.c xdr.c
-LIBS		= -lrpcsvc #-lsocket -lnsl
+LIBS		= -lrpcsvc $(EXTRA_LIBS)
+EXTRA_LIBS	= #-lsocket -lnsl
 
 all:		ywho
 
@@ -37,12 +39,12 @@ depend:		
 
 install.man:	
 		rm -f \
-		    $(DEST)/man/man1/ywho.1 \
-		    $(DEST)/man/man1/yusers.1 \
-		    $(DEST)/man/man1/yuptime.1
-		install -m 0444 ywho.man $(DEST)/man/man1/ywho.1
-		ln -s ywho.1 $(DEST)/man/man1/yusers.1
-		ln -s ywho.1 $(DEST)/man/man1/yuptime.1
+		    $(DEST)/$(PKGMANDIR)/man1/ywho.1 \
+		    $(DEST)/$(PKGMANDIR)/man1/yusers.1 \
+		    $(DEST)/$(PKGMANDIR)/man1/yuptime.1
+		install -m 0444 ywho.man $(DEST)/$(PKGMANDIR)/man1/ywho.1
+		ln -s ywho.1 $(DEST)/$(PKGMANDIR)/man1/yusers.1
+		ln -s ywho.1 $(DEST)/$(PKGMANDIR)/man1/yuptime.1
 
 tar:		ywho.tar.gz