From e21ba7fdf1216f9790292394b254e7d82a46cb3e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 15 Apr 2024 12:07:09 -0400 Subject: build: Make distclean also clean the distcheck dirs --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 94aba73..4f4bf5c 100644 --- a/Makefile +++ b/Makefile @@ -348,15 +348,6 @@ ${GEN}/VERSION: ${GEN}/NEWVERSION ${OBJ}/src/version.o: ${GEN}/VERSION ${OBJ}/src/version.o: CPPFLAGS := ${CPPFLAGS} -DBFS_VERSION='"${VERSION}"' -# Clean all build products -clean:: - ${RM} -r ${BIN} ${OBJ} - -# Clean everything, including generated files -distclean: clean - ${RM} -r ${GEN} -.PHONY: distclean - ## Test phase (`make check`) # Unit test binaries @@ -482,3 +473,14 @@ check-install:: +${MAKE} uninstall DESTDIR=${BUILDDIR}/pkg ${BIN}/bfs ${BUILDDIR}/pkg -not -type d -print -exit 1 ${RM} -r ${BUILDDIR}/pkg + +## Cleanup (`make clean`) + +# Clean all build products +clean:: + ${RM} -r ${BIN} ${OBJ} + +# Clean everything, including generated files +distclean: clean + ${RM} -r ${GEN} ${DISTCHECKS} +.PHONY: distclean -- cgit v1.2.3