-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.11 KB
/
Makefile
File metadata and controls
47 lines (38 loc) · 1.11 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
CPP=g++
INCS=-Ivendor/miniaudio -Ivendor/leif/vendor/glad/include -Ivendor/stb_image_write
LIBS=-lleif -lclipboard -lglfw -lm -Lvendor/miniaudio/lib -lminiaudio -lxcb -lGL
PKG_CONFIG=`pkg-config --cflags --libs taglib`
CFLAGS=-O3 -ffast-math -DGLFW_INCLUDE_NONE -std=c++17
LYSSA_DIR=~/.lyssa/
all: build
lyssa-dir:
@mkdir -p $(LYSSA_DIR)
cp -r ./scripts/ $(LYSSA_DIR)
cp -r ./assets/ $(LYSSA_DIR)
@if [ ! -d ~/.lyssa/playlists/ ]; then \
mkdir ~/.lyssa/playlists; \
fi
@if [ ! -d ~/.lyssa/downloaded_playlists/ ]; then \
mkdir ~/.lyssa/downloaded_playlists; \
fi
if [ ! -d ~/.lyssa/playlists/favourites ]; then \
cp -r ./.lyssa/favourites/ ~/.lyssa/playlists; \
fi
build: bin lyssa-dir
@echo "[INFO]: Building Lyssa."
${CPP} ${CFLAGS} src/*.cpp -o bin/lyssa ${INCS} ${LIBS} ${PKG_CONFIG}
bin:
mkdir bin
clean:
rm -rf ./bin
run:
cd ./bin && ./lyssa
install:
cp ./bin/lyssa /usr/bin/
cp ./Lyssa.desktop /usr/share/applications
cp -r ./logo /usr/share/icons/lyssa
uninstall:
rm -rf $(LYSSA_DIR)
rm -rf /usr/bin/lyssa
rm -rf /usr/share/applications/Lyssa.desktop
rm -rf /usr/share/icons/lyssa/