diff --git a/mk/repo.mk b/mk/repo.mk index 48818eadf2a8688a7e087f318928919085c50071..8aafe86b349657d444782f9b53e45c78d52f0078 100644 --- a/mk/repo.mk +++ b/mk/repo.mk @@ -27,6 +27,16 @@ else touch $@ endif +# Invoke clean.sh for a single target +c.%: FORCE +ifeq ($(PODMAN_BUILD),1) + $(PODMAN_RUN) $(MAKE) $@ +else + export PATH="$(PREFIX_PATH):$$PATH" && \ + cd cookbook && \ + ./clean.sh $* +endif + # Invoke repo.sh for a single target r.%: FORCE ifeq ($(PODMAN_BUILD),1)