From 07e0d9dbb6547453078557fcb62a89dbdd0d5fd8 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sat, 22 Aug 2026 12:17:12 +0000 Subject: core: build: Remove manifest on clean Signed-off-by: Chloe M. --- core/build.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/build.c b/core/build.c index 32de105..0752490 100644 --- a/core/build.c +++ b/core/build.c @@ -552,6 +552,12 @@ bop_build_dir(const char *dirpath, build_op_t bop) } } + /* Remove the manifest if we are cleaning */ + if (bop == BUILD_OP_CLEAN) { + build_dirs = true; + remove(pathbuf); + } + /* Build from directory if not manifest */ if (build_dirs) { error = build_from_dir(dirpath, dir, bop, ¶ms); -- cgit v1.2.3