From fa520504bfa3fe71d559ef123d574b2ec247c8c1 Mon Sep 17 00:00:00 2001 From: anton Date: Thu, 6 Jan 2022 13:18:36 +0000 Subject: [PATCH] Make it possible to compile the patterns utility with the source tree checked out anywhere. While here, tidy up the Makefile a bit. ok deraadt@ --- usr.sbin/fw_update/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/usr.sbin/fw_update/Makefile b/usr.sbin/fw_update/Makefile index a8d2406fd7c..fd6c2e61462 100644 --- a/usr.sbin/fw_update/Makefile +++ b/usr.sbin/fw_update/Makefile @@ -1,17 +1,16 @@ -# $OpenBSD: Makefile,v 1.4 2022/01/05 16:24:29 deraadt Exp $ +# $OpenBSD: Makefile,v 1.5 2022/01/06 13:18:36 anton Exp $ -NOPROG= +PROG= patterns MAN= fw_update.8 CC= ${HOSTCC} -CFLAGS+=-I /usr/src/sys/dev/pci/drm/amd/amdgpu \ - -I /usr/src/sys/dev/pci/drm/i915 \ - -I /usr/src/sys/dev/pci/drm/radeon -ALL= firmware_patterns +CFLAGS+=-I ${.CURDIR}/../../sys/dev/pci/drm/amd/amdgpu \ + -I ${.CURDIR}/../../sys/dev/pci/drm/i915 \ + -I ${.CURDIR}/../../sys/dev/pci/drm/radeon -PROG=patterns +CLEANFILES+=firmware_patterns firmware_patterns: patterns - $(.OBJDIR)/patterns | sort | uniq > $@ + ${.OBJDIR}/patterns | sort | uniq > $@ realinstall: @@ -24,5 +23,4 @@ afterinstall: firmware_patterns -m ${SHAREMODE} ${.OBJDIR}/firmware_patterns \ ${DESTDIR}${SHAREDIR}/misc/firmware_patterns -CLEANFILES+=firmware_patterns .include -- 2.20.1