Skip to content

Commit

Permalink
[YUNIKORN-1880] Add clean target to image builds (#155)
Browse files Browse the repository at this point in the history
Closes: #155
  • Loading branch information
craigcondit committed Aug 10, 2023
1 parent e9877ba commit d52c05f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions release-top-level-artifacts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ test:
.PHONY: arch
arch:
@eval "$(MAKE) -C $(SHIM_DIR) arch"

.PHONY: clean
clean:
$(MAKE) -C $(CORE_DIR) clean
$(MAKE) -C $(SHIM_DIR) clean
$(MAKE) -C $(WEB_DIR) clean

.PHONY: distclean
distclean:
$(MAKE) -C $(CORE_DIR) distclean
$(MAKE) -C $(SHIM_DIR) distclean
$(MAKE) -C $(WEB_DIR) distclean
2 changes: 1 addition & 1 deletion tools/build-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def build_image(base_dir, image, arch, version):
my_env["VERSION"] = version # force version, just be safe
my_env["HOST_ARCH"] = arch # the architecture override
my_env["REGISTRY"] = repository # repository override (test only)
command = [cmd, image]
command = [cmd, "clean", image]
# build the image using make
retcode = subprocess.call(command, cwd=base_dir, env=my_env, stdout=subprocess.DEVNULL)
if retcode:
Expand Down

0 comments on commit d52c05f

Please sign in to comment.