Replace rebuild-recipe with make cr.recipe and make ucr.recipe

This commit is contained in:
Jeremy Soller 2023-12-13 14:41:38 -07:00
parent 7bec121856
commit fb1478d9bf
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 10 additions and 18 deletions

View file

@ -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.$*

View file

@ -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"