-
Notifications
You must be signed in to change notification settings - Fork 15
/
makefile
28 lines (22 loc) · 819 Bytes
/
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
SRC = src/starfetch.cpp
#CC = g++
CFLAGS = -Wall -Wextra -O2 -ggdb -std=c++17 -pipe -pedantic -Wundef -Wshadow -W -Wwrite-strings -Wcast-align -Wstrict-overflow=5 -Wconversion -Wpointer-arith -Wformat=2 -Wsign-compare -Wendif-labels -Wredundant-decls -Winit-self
INSTALL_DIR = /usr/local/share
BIN_DIR = /usr/local/bin
all: starfetch
starfetch:
${CXX} ${CFLAGS} ${SRC} -o starfetch
install:
rm -rf ${INSTALL_DIR}/starfetch
mkdir -p ${INSTALL_DIR}/starfetch
cp -rf ./res/* ${INSTALL_DIR}/starfetch/
chmod 711 starfetch
cp -rf starfetch ${INSTALL_DIR}/starfetch/starfetch
rm -rf ${BIN_DIR}/starfetch
ln -s ${INSTALL_DIR}/starfetch/starfetch ${BIN_DIR}/starfetch
uninstall:
rm -rf ${INSTALL_DIR}/starfetch
unlink ${BIN_DIR}/starfetch
clean:
rm -rf starfetch
.PHONY: all starfetch install uninstall clean