From 7e8405287bb15b08530f958548c559d35cc927f3 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 10 May 2009 15:38:31 +0200 Subject: [PATCH] locate(1): Set WARNS from locate/Makefile.inc for all subdirs. --- usr.bin/locate/Makefile.inc | 3 +++ usr.bin/locate/bigram/Makefile | 1 - usr.bin/locate/code/Makefile | 2 -- usr.bin/locate/locate/Makefile | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.bin/locate/Makefile.inc b/usr.bin/locate/Makefile.inc index 8af7baafd3..077d296e3e 100644 --- a/usr.bin/locate/Makefile.inc +++ b/usr.bin/locate/Makefile.inc @@ -2,3 +2,6 @@ # $DragonFly: src/usr.bin/locate/Makefile.inc,v 1.2 2003/06/17 04:29:28 dillon Exp $ LIBEXECDIR?= /usr/libexec +WARNS?= 2 + +.include "../Makefile.inc" diff --git a/usr.bin/locate/bigram/Makefile b/usr.bin/locate/bigram/Makefile index d929ee9ece..d6717dd7cf 100644 --- a/usr.bin/locate/bigram/Makefile +++ b/usr.bin/locate/bigram/Makefile @@ -7,5 +7,4 @@ NOMAN= noman BINDIR= ${LIBEXECDIR} CFLAGS+= -I${.CURDIR}/../locate -.include "../../Makefile.inc" .include diff --git a/usr.bin/locate/code/Makefile b/usr.bin/locate/code/Makefile index 91713c7f3a..232d2fdc81 100644 --- a/usr.bin/locate/code/Makefile +++ b/usr.bin/locate/code/Makefile @@ -6,7 +6,5 @@ PROG= locate.code CFLAGS+=-I${.CURDIR}/../locate NOMAN= noman BINDIR= ${LIBEXECDIR} -WARNS?= 2 -.include "../../Makefile.inc" .include diff --git a/usr.bin/locate/locate/Makefile b/usr.bin/locate/locate/Makefile index 29bcc45efd..a498763d29 100644 --- a/usr.bin/locate/locate/Makefile +++ b/usr.bin/locate/locate/Makefile @@ -7,7 +7,6 @@ SRCS= util.c locate.c CFLAGS+= -I${.CURDIR} -DMMAP # -DDEBUG (print time) -O2 (10% faster) SCRIPTS=updatedb.sh mklocatedb.sh concatdb.sh MAN= locate.1 locate.updatedb.8 -WARNS?= 2 SCRIPTSDIR= ${LIBEXECDIR} .for script in ${SCRIPTS} @@ -19,5 +18,4 @@ MLINKS+= locate.updatedb.8 updatedb.8 # ${INSTALL} -o root -g wheel -m 644 \ # ${.CURDIR}/locate.rc ${DESTDIR}/etc -.include "../../Makefile.inc" .include -- 2.11.4.GIT