diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-06-16 02:43:15 +0100 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-06-16 02:43:15 +0100 |
| commit | 8129d0ef4629f44cd89e3b79e8b66129bb9dc866 (patch) | |
| tree | 271a7698c45d301a6f89f79fb1f2d0cac62f39da /Makefile.inc | |
| parent | 737fb60605e8b9c64d6dd9e4c982a4e7ee2ef5d3 (diff) | |
| download | lfjail-8129d0ef4629f44cd89e3b79e8b66129bb9dc866.tar.gz lfjail-8129d0ef4629f44cd89e3b79e8b66129bb9dc866.tar.bz2 | |
updates
Diffstat (limited to 'Makefile.inc')
| -rw-r--r-- | Makefile.inc | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/Makefile.inc b/Makefile.inc index f3f8363..7471b5c 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -31,23 +31,6 @@ BINGRP!= id -ng MANOWN!= id -nu MANGRP!= id -ng -#.if defined(SRCS) || defined(ATF_TESTS_CXX) -#PCHFLAG= -include-pch std.pch -#CXXFLAGS+= ${PCHFLAG} -#CLEANFILES+= std.pch -# -#.for src in ${SRCS} -#${src}: std.pch -#.endfor -# -#.for test in ${ATF_TESTS_CXX} -#${test}.cc: std.pch -#.endfor -# -#std.pch: ${TOPDIR}/std.hh -# ${CXX} ${PICFLAG} ${CXXFLAGS:tW:S/${PCHFLAG}//} -c ${.ALLSRC} -o ${.TARGET} -#.endif - SUBDIR_TARGETS+= tidy # Support clang-tidy. @@ -59,10 +42,12 @@ tidy: .PHONY: tidy .for src in ${SRCS} -tidy-${src}: ${src} +# Avoid re-running tidy on files which haven't changed. +${src}.tidy: ${src} ${CLANG_TIDY} ${.ALLSRC} -config-file=${TOPDIR}/clang-tidy.yaml -- ${PICFLAG} ${CXXFLAGS} -.PHONY: tidy-${src} -tidy: tidy-${src} + touch ${.TARGET} +tidy: ${src}.tidy +CLEANFILES+= ${src}.tidy .endfor |
