From 984e340bf121e042d5337c0fffa27773db8ed6c7 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Fri, 15 Jun 2018 19:19:36 +0000 Subject: [PATCH] Put in temporary hacks for jevents. - Handle 'make clean' - Don't try building it locally, just fail instead. jevents should really be merged into lib/libpmc/Makefile. --- lib/libpmc/Makefile | 8 +++++--- 1 file 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