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"