Skip to content

Commit

Permalink
Use SRCTOP-relative paths to other directories instead of .CURDIR-rel…
Browse files Browse the repository at this point in the history
…ative ones

Also, use :H where possible/sensical to manipulate .CURDIR-relative paths

This simplifies pathing in make/displayed output.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
  • Loading branch information
ngie-eign committed Mar 1, 2017
1 parent 2d9c7b7 commit c46ffb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion usr.sbin/zic/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# $FreeBSD$

.include "${.CURDIR}/../../Makefile.inc"
.include "${SRCTOP}/usr.sbin/Makefile.inc"
4 changes: 2 additions & 2 deletions usr.sbin/zic/zdump/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# $FreeBSD$

.PATH: ${.CURDIR}/../../../contrib/tzcode/zic
.PATH: ${SRCTOP}/contrib/tzcode/zic

PROG= zdump
MAN= zdump.8
SRCS= zdump.c ialloc.c scheck.c

CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"${SHAREDIR}/zoneinfo\" -Demkdir=mkdir
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../contrib/tzcode/stdtime
CFLAGS+= -I${.CURDIR:H} -I${SRCTOP}/contrib/tzcode/stdtime

WARNS?= 2

Expand Down
4 changes: 2 additions & 2 deletions usr.sbin/zic/zic/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $FreeBSD$

.PATH: ${.CURDIR}/../../../contrib/tzcode/zic
.PATH: ${SRCTOP}/contrib/tzcode/zic

PROG= zic
MAN= zic.8
Expand All @@ -9,7 +9,7 @@ SRCS= zic.c ialloc.c scheck.c
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"${SHAREDIR}/zoneinfo\" -Demkdir=mkdir
CFLAGS+= -DHAVE_STRERROR -DHAVE_UNISTD_H
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../contrib/tzcode/stdtime
CFLAGS+= -I${.CURDIR:H} -I${SRCTOP}/contrib/tzcode/stdtime

WARNS?= 2

Expand Down

0 comments on commit c46ffb4

Please sign in to comment.