-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
30 lines (24 loc) · 1.02 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
INSHOME=${HOME}/.config/persephone
all: persephone
persephone: clean
NOTAR=true NOZIP=true ./build
install:
sudo install -D -m644 persephone /usr/bin/persephone
sudo chmod +x /usr/bin/persephone
mkdir -pv ${INSHOME}/temp
mkdir -pv ${INSHOME}/static/fonts
mkdir -pv ${INSHOME}/static/images
if ! [ -f ${INSHOME}/config.yml ]; then install -D -m644 config.example.yml ${INSHOME}/config.yml; fi
install -D -m644 static/fonts/NotoSans-Bold.ttf ${INSHOME}/static/fonts/NotoSans-Bold.ttf
install -D -m644 static/fonts/NotoSans-Regular.ttf ${INSHOME}/static/fonts/NotoSans-Regular.ttf
install -D -m644 static/images/background.png ${INSHOME}/static/images/background.png
install -D -m644 static/images/bm.png ${INSHOME}/static/images/bm.png
install -D -m644 artists.yml ${INSHOME}/artists.yml
uninstall:
sudo rm -rf /usr/bin/persephone
rm -rf ${INSHOME}/temp
rm -rf ${INSHOME}/static
clean:
if [ -f persephone ]; then rm persephone; fi
if [ -f rsrc.syso ]; then rm rsrc.syso; fi
.PHONY: all persephone install uninstall clean