[v0.97] Use DESTDIR instead of PREFIX in Makefile

This commit is contained in:
Dr-Noob
2021-04-12 15:47:59 +02:00
parent 64937862fb
commit 9fa7b4ce7f
3 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ CC=gcc
CFLAGS=-Wall -Wextra -Werror -pedantic -fstack-protector-all -pedantic -std=c99 CFLAGS=-Wall -Wextra -Werror -pedantic -fstack-protector-all -pedantic -std=c99
SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith
PREFIX ?= /usr DESTDIR ?= /usr
SRC_COMMON=src/common/ SRC_COMMON=src/common/
@@ -53,11 +53,11 @@ clean:
@rm $(OUTPUT) @rm $(OUTPUT)
install: $(OUTPUT) install: $(OUTPUT)
install -Dm755 "cpufetch" "$(PREFIX)/bin/cpufetch" install -Dm755 "cpufetch" "$(DESTDIR)/bin/cpufetch"
install -Dm644 "LICENSE" "$(PREFIX)/share/licenses/cpufetch-git/LICENSE" install -Dm644 "LICENSE" "$(DESTDIR)/share/licenses/cpufetch-git/LICENSE"
install -Dm644 "cpufetch.8" "$(PREFIX)/share/man/man8/cpufetch.8.gz" install -Dm644 "cpufetch.8" "$(DESTDIR)/share/man/man8/cpufetch.8.gz"
uninstall: uninstall:
rm -f "$(PREFIX)/bin/cpufetch" rm -f "$(DESTDIR)/bin/cpufetch"
rm -f "$(PREFIX)/share/licenses/cpufetch-git/LICENSE" rm -f "$(DESTDIR)/share/licenses/cpufetch-git/LICENSE"
rm -f "$(PREFIX)/share/man/man8/cpufetch.8.gz" rm -f "$(DESTDIR)/share/man/man8/cpufetch.8.gz"

0
src/common/cpu.c Executable file → Normal file
View File

0
src/x86/cpuid.c Executable file → Normal file
View File