summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-15 12:07:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-15 12:07:26 -0400
commite21ba7fdf1216f9790292394b254e7d82a46cb3e (patch)
treed0d0c870adb6dca1aeebed9be30f21e778b1f9ab /Makefile
parenteb7dffa166a01240ba50dd23b1f086339b6eb619 (diff)
downloadbfs-e21ba7fdf1216f9790292394b254e7d82a46cb3e.tar.xz
build: Make distclean also clean the distcheck dirs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
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