-# $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:
-m ${SHAREMODE} ${.OBJDIR}/firmware_patterns \
${DESTDIR}${SHAREDIR}/misc/firmware_patterns
-CLEANFILES+=firmware_patterns
.include <bsd.prog.mk>