aboutsummaryrefslogtreecommitdiff
path: root/lib/libpmc
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2018-06-15 19:19:36 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2018-06-15 19:19:36 +0000
commitb6b193e9d865b01c83d6703c4ca12d04ee79404c (patch)
tree55befc3fae772d4bdc7f4d32fbf4d1fa3e3fcf13 /lib/libpmc
parente248c237025ad378ef73282f1405214c2a935bf9 (diff)
Notes
Diffstat (limited to 'lib/libpmc')
-rw-r--r--lib/libpmc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index 7a237d0a7ebc..48e94a2a078c 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -20,9 +20,11 @@ EVENT_ARCH="powerpc"
.endif
JEVENTS= ${BTOOLSPATH:U.}/pmu-events/jevents
-# This file is built in a subdirectory so never try to rebuild
-# it here due to missing meta file.
-${JEVENTS}: .NOMETA
+# This file is built in a subdirectory so never try to rebuild it here.
+${JEVENTS}: .PHONY
+.if make(*clean*)
+SUBDIR+= pmu-events
+.endif
libpmc_events.c: ${JEVENTS}
${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch libpmc_events.c