]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Adopt SRCTOP in usr.bin
authorWarner Losh <imp@FreeBSD.org>
Sun, 12 Mar 2017 18:58:44 +0000 (18:58 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sun, 12 Mar 2017 18:58:44 +0000 (18:58 +0000)
Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo
over ${.CURDIR}/../foo for paths in Makefiles.

Differential Revision: https://reviews.freebsd.org/D9932
Sponsored by: Netflix
Silence on: arch@ (twice)

chpass/Makefile

index 266ca5ad1d3dfffa71c0900165c414ae80b2040f..fb70df886ee2d88171d13716d5ca2fceff6a873d 100644 (file)
@@ -3,7 +3,7 @@
 
 .include <src.opts.mk>
 
-.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
+.PATH: ${SRCTOP}/usr.sbin/pwd_mkdb ${SRCTOP}/lib/libc/gen
 
 PROG=  chpass
 SRCS=  chpass.c edit.c field.c pw_scan.c table.c util.c
@@ -15,7 +15,7 @@ CFLAGS+= -DYP
 .endif
 #Some people need this, uncomment to activate
 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
-CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
+CFLAGS+=-I${SRCTOP}/usr.sbin/pwd_mkdb -I${SRCTOP}/lib/libc/gen -I.
 
 LIBADD=        crypt util
 .if ${MK_NIS} != "no"