From fb1478d9bf1e53d3459e6dc777ff1cb8a5d02fac Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 13 Dec 2023 14:41:38 -0700 Subject: [PATCH] Replace rebuild-recipe with make cr.recipe and make ucr.recipe --- mk/repo.mk | 10 ++++++++++ scripts/rebuild-recipe.sh | 18 ------------------ 2 files changed, 10 insertions(+), 18 deletions(-) delete mode 100755 scripts/rebuild-recipe.sh diff --git a/mk/repo.mk b/mk/repo.mk index 1e624b9..2bda525 100644 --- a/mk/repo.mk +++ b/mk/repo.mk @@ -62,3 +62,13 @@ else cd cookbook && \ ./unfetch.sh $* endif + +# Invoke clean.sh, and repo.sh for a single target +cr.%: $(FSTOOLS_TAG) FORCE + $(MAKE) c.$* + $(MAKE) r.$* + +# Invoke unfetch.sh, clean.sh, and repo.sh for a single target +ucr.%: $(FSTOOLS_TAG) FORCE + $(MAKE) u.$* + $(MAKE) cr.$* diff --git a/scripts/rebuild-recipe.sh b/scripts/rebuild-recipe.sh deleted file mode 100755 index 3856b5f..0000000 --- a/scripts/rebuild-recipe.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -set -ex - -if [ -z "$1" ] -then - echo "$0: no argument provided" - exit 1 -fi - -if [ ! -d "cookbook/recipes/$1" ] -then - echo "$0: $1 is not a recipe" - exit 1 -fi - -rm -rfv "cookbook/recipes/$1/"{source,source.tar,target} -make "r.$1"