-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (20 loc) · 1.08 KB
/
Copy pathMakefile
File metadata and controls
42 lines (20 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
all: grawity-code-utfvis
clean: grawity-code-utfvis-clean
.PHONY: all clean grawity-code-utfvis grawity-code-utfvis-checkout grawity-code-utfvis
bscripts-dir = HOME/.bscripts
bscript-forks-dir = $(bscripts-dir)/_forks
####
#### grawity/code/utfvis
grawity-code-dir = $(bscript-forks-dir)/grawity__code
grawity-code-utfvis-cache-dir = $(bscript-forks-dir)/grawity__code__cache
$(grawity-code-dir)/.git/config:
git clone --depth 1 --no-checkout --branch main https://github.com/grawity/code.git ./$(grawity-code-dir)
grawity-code-utfvis-checkout: $(grawity-code-dir)/.git/config
cd ./$(grawity-code-dir) && git config core.sparseCheckout true && git sparse-checkout set /utfvis && git checkout
grawity-code-utfvis: grawity-code-utfvis-checkout
mkdir -p ./$(grawity-code-utfvis-cache-dir)
cp -a ./$(grawity-code-dir)/utfvis ./$(grawity-code-utfvis-cache-dir)/.
ln -srf ./$(grawity-code-utfvis-cache-dir)/utfvis $(bscripts-dir)/utfvis
grawity-code-utfvis-clean:
rm -rf ./$(grawity-code-dir)
git restore -- ./$(grawity-code-dir)