-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·65 lines (52 loc) · 2 KB
/
Copy pathMakefile
File metadata and controls
executable file
·65 lines (52 loc) · 2 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: all json kitty alacritty nvim vim clean
TINTED_BUILDER_RUST_SHA256 = 51a68e43b86192bf081f99bf3c1798d9e346d5dd016d76f31ea75a58585d9386
TINTED_BUILDER_RUST_FILE = ./lib/tinted-builder-rust/tinted-builder-rust.tar.gz
TINTED_BUILDER_RUST_CMD = ./lib/tinted-builder-rust/tinted-builder-rust -s ./build/base16 build out
SHA256_CMD = sha256sum
all: base16 vim nvim terminals fish
fish: json
bash scripts/make.sh 'fish'
#cp build/fish/voltrix.fish ~/.config/fish/functions/
vim: base16 deps
if [ ! -d ./tinted-vim ]; then \
git clone https://github.com/tinted-theming/tinted-vim ;\
fi
mkdir -p ./out/templates
cp ./tinted-vim/templates/* ./out/templates
$(TINTED_BUILDER_RUST_CMD)
rm ./out/templates/*
nvim: base16 deps
if [ ! -d ./tinted-nvim ]; then \
git clone https://github.com/tinted-theming/tinted-nvim ;\
fi
mkdir -p ./out/templates
cp ./tinted-nvim/templates/* ./out/templates
$(TINTED_BUILDER_RUST_CMD)
rm ./out/templates/*
terminals: base16 deps
if [ ! -d ./tinted-terminal ]; then \
git clone https://github.com/tinted-theming/tinted-terminal ;\
fi
mkdir -p ./out/templates
cp ./tinted-terminal/templates/* ./out/templates
$(TINTED_BUILDER_RUST_CMD)
rm ./out/templates/*
base16: json
bash scripts/make.sh 'base16'
json:
bash scripts/write_json.sh
deps: tinted_builder_rust
tinted_builder_rust:
mkdir -p ./lib/tinted-builder-rust
wget -O "$(TINTED_BUILDER_RUST_FILE)" https://github.com/tinted-theming/tinted-builder-rust/releases/download/v0.13.2/tinted-builder-rust-x86_64-unknown-linux-gnu.tar.gz
CALCULATED_SHA256=`$(SHA256_CMD) $(TINTED_BUILDER_RUST_FILE)`; \
case "$$CALCULATED_SHA256 " in \
($(TINTED_BUILDER_RUST_SHA256)\ *) : ok ;; \
(*) echo invalid checksum for "$(TINTED_BUILDER_RUST_FILE)", expected=\"$(TINTED_BUILDER_RUST_SHA256)\" actual=\"$$CALCULATED_SHA256\"; \
exit 1 ;; \
esac
tar xf ./lib/tinted-builder-rust/tinted-builder-rust.tar.gz -C ./lib/tinted-builder-rust
clean:
rm -rf ./lib ./out ./tinted-terminal ./tinted-nvim ./tinted-vim
delete:
rm -rf build