summaryrefslogtreecommitdiff
path: root/core/build.c
diff options
context:
space:
mode:
authorChloe M. <chloe@aptel.org>2026-08-22 12:17:12 +0000
committerChloe M. <chloe@aptel.org>2026-08-22 12:17:32 +0000
commit07e0d9dbb6547453078557fcb62a89dbdd0d5fd8 (patch)
tree59f9cb9c804fda6d45de6435eb80cda03b869a1b /core/build.c
parentda0ff0f878b6867c5a84ed62c2268789d9dc7460 (diff)
core: build: Remove manifest on clean
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'core/build.c')
-rw-r--r--core/build.c6
1 files changed, 6 insertions, 0 deletions
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, &params);