This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (46 loc) · 1.63 KB
/
Makefile
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
SRCD = glyphs
DIST = dists
VERSION = $(shell date '+%Y%m%d%H%M%S')
all: build
build: download
@[ -d $(DIST) ] || mkdir -p $(DIST)
@echo "----- build start -----"
@PYTHONPATH=$(CURDIR)/scripts \
python3 -c "import sys;import build; sys.exit(build.build('$(VERSION)'))"
@rm -f isfit-plus.ttf
@echo "----- Everything seems good -----"
download: fileicons alltheicons nerdsymbol mdg
nerdsymbol:
@[ -d $(SRCD) ] || mkdir -p $(SRCD)
@if [ ! -f $(SRCD)/SymbolsNerdFont-Regular.ttf ] ; then\
echo "Download NerdFontSymbolOnly" ;\
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/NerdFontsSymbolsOnly.zip ;\
unar NerdFontsSymbolsOnly.zip ;\
cp -v NerdFontsSymbolsOnly/SymbolsNerdFont-Regular.ttf $(SRCD)/ ;\
rm -fr NerdFontsSymbolsOnly ;\
rm -f NerdFontsSymbolsOnly.zip ;\
fi
fileicons:
@[ -d $(SRCD) ] || mkdir -p $(SRCD)
@if [ ! -f $(SRCD)/file-icons.ttf ] ; then\
wget https://github.com/file-icons/atom/raw/master/fonts/file-icons.woff2 ;\
woff2_decompress file-icons.woff2 ;\
mv file-icons.ttf $(SRCD)/ ;\
rm -f file-icons.woff2 ;\
fi
alltheicons:
@[ -d $(SRCD) ] || mkdir -p $(SRCD)
@if [ ! -f $(SRCD)/all-the-icons.ttf ] ; then\
wget https://github.com/domtronn/all-the-icons.el/raw/master/fonts/all-the-icons.ttf -O $(SRCD)/all-the-icons.ttf ;\
fi
mdg:
@if [ ! -f $(SRCD)/MaterialIcons-Regular.ttf ] ; then\
wget https://github.com/google/material-design-icons/raw/master/font/MaterialIcons-Regular.ttf -O $(SRCD)/MaterialIcons-Regular.ttf ;\
fi
clean:
@rm -f scripts/*.pyc
@rm -fr scripts/__pycache__
distclean: clean
rm -fr $(SRCD)/*.ttf
rm -fr $(SRCD)/*.otf
rm -fr $(DIST)/*.ttf