mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +01:00
[v0.97] Use DESTDIR instead of PREFIX in Makefile
This commit is contained in:
14
Makefile
14
Makefile
@@ -3,7 +3,7 @@ CC=gcc
|
||||
CFLAGS=-Wall -Wextra -Werror -pedantic -fstack-protector-all -pedantic -std=c99
|
||||
SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith
|
||||
|
||||
PREFIX ?= /usr
|
||||
DESTDIR ?= /usr
|
||||
|
||||
SRC_COMMON=src/common/
|
||||
|
||||
@@ -53,11 +53,11 @@ clean:
|
||||
@rm $(OUTPUT)
|
||||
|
||||
install: $(OUTPUT)
|
||||
install -Dm755 "cpufetch" "$(PREFIX)/bin/cpufetch"
|
||||
install -Dm644 "LICENSE" "$(PREFIX)/share/licenses/cpufetch-git/LICENSE"
|
||||
install -Dm644 "cpufetch.8" "$(PREFIX)/share/man/man8/cpufetch.8.gz"
|
||||
install -Dm755 "cpufetch" "$(DESTDIR)/bin/cpufetch"
|
||||
install -Dm644 "LICENSE" "$(DESTDIR)/share/licenses/cpufetch-git/LICENSE"
|
||||
install -Dm644 "cpufetch.8" "$(DESTDIR)/share/man/man8/cpufetch.8.gz"
|
||||
|
||||
uninstall:
|
||||
rm -f "$(PREFIX)/bin/cpufetch"
|
||||
rm -f "$(PREFIX)/share/licenses/cpufetch-git/LICENSE"
|
||||
rm -f "$(PREFIX)/share/man/man8/cpufetch.8.gz"
|
||||
rm -f "$(DESTDIR)/bin/cpufetch"
|
||||
rm -f "$(DESTDIR)/share/licenses/cpufetch-git/LICENSE"
|
||||
rm -f "$(DESTDIR)/share/man/man8/cpufetch.8.gz"
|
||||
|
||||
0
src/common/cpu.c
Executable file → Normal file
0
src/common/cpu.c
Executable file → Normal file
0
src/x86/cpuid.c
Executable file → Normal file
0
src/x86/cpuid.c
Executable file → Normal file
Reference in New Issue
Block a user