diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-15 12:07:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-15 12:07:26 -0400 |
commit | e21ba7fdf1216f9790292394b254e7d82a46cb3e (patch) | |
tree | d0d0c870adb6dca1aeebed9be30f21e778b1f9ab /Makefile | |
parent | eb7dffa166a01240ba50dd23b1f086339b6eb619 (diff) | |
download | bfs-e21ba7fdf1216f9790292394b254e7d82a46cb3e.tar.xz |
build: Make distclean also clean the distcheck dirs
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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 |