summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2022-01-06 13:18:37 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2022-01-06 13:18:37 +0000
commit976766d45d670af9d039d04f48cfe0e65db93081 (patch)
treea6774101ce91c97e6db18a64bf695d730a74ac4d
parenta2062310672c650c79731e1558a28b3c9ad60c09 (diff)
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@
-rw-r--r--usr.sbin/fw_update/Makefile16
1 files 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 <bsd.prog.mk>