From f621dd9351767222d7ed74f5008d6eb8ea6dcb73 Mon Sep 17 00:00:00 2001 From: ngie Date: Sat, 4 Mar 2017 11:33:01 +0000 Subject: [PATCH] sbin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon --- ggatec/Makefile | 4 ++-- ggated/Makefile | 4 ++-- ggatel/Makefile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ggatec/Makefile b/ggatec/Makefile index e228fea..0f4eb70 100644 --- a/ggatec/Makefile +++ b/ggatec/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/../shared +.PATH: ${.CURDIR:H}/shared PROG= ggatec MAN= ggatec.8 @@ -8,7 +8,7 @@ SRCS= ggatec.c ggate.c CFLAGS+= -DMAX_SEND_SIZE=32768 CFLAGS+= -DLIBGEOM -CFLAGS+= -I${.CURDIR}/../shared +CFLAGS+= -I${.CURDIR:H}/shared LIBADD= geom util pthread diff --git a/ggated/Makefile b/ggated/Makefile index 83516c6..c5a6131 100644 --- a/ggated/Makefile +++ b/ggated/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/../shared +.PATH: ${.CURDIR:H}/shared PROG= ggated MAN= ggated.8 @@ -8,6 +8,6 @@ SRCS= ggated.c ggate.c LIBADD= pthread util -CFLAGS+= -I${.CURDIR}/../shared +CFLAGS+= -I${.CURDIR:H}/shared .include diff --git a/ggatel/Makefile b/ggatel/Makefile index be88bd4..af58c73 100644 --- a/ggatel/Makefile +++ b/ggatel/Makefile @@ -1,13 +1,13 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/../shared +.PATH: ${.CURDIR:H}/shared PROG= ggatel MAN= ggatel.8 SRCS= ggatel.c ggate.c CFLAGS+= -DLIBGEOM -CFLAGS+= -I${.CURDIR}/../shared +CFLAGS+= -I${.CURDIR:H}/shared LIBADD= geom util