mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +01:00
[v0.97] Add optimization flags to Makefile. Rename man page from 8 to 1
This commit is contained in:
9
Makefile
9
Makefile
@@ -35,13 +35,14 @@ else
|
||||
OUTPUT=cpufetch.exe
|
||||
endif
|
||||
|
||||
all: CFLAGS += -O3
|
||||
all: $(OUTPUT)
|
||||
|
||||
debug: CFLAGS += -g -O0
|
||||
debug: $(OUTPUT)
|
||||
|
||||
release: CFLAGS += -static -O3
|
||||
release: $(OUTPUT)
|
||||
static: CFLAGS += -static -O3
|
||||
static: $(OUTPUT)
|
||||
|
||||
$(OUTPUT): Makefile $(SOURCE) $(HEADERS)
|
||||
$(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
|
||||
@@ -55,9 +56,9 @@ clean:
|
||||
install: $(OUTPUT)
|
||||
install -Dm755 "cpufetch" "$(DESTDIR)$(PREFIX)/bin/cpufetch"
|
||||
install -Dm644 "LICENSE" "$(DESTDIR)$(PREFIX)/share/licenses/cpufetch-git/LICENSE"
|
||||
install -Dm644 "cpufetch.8" "$(DESTDIR)$(PREFIX)/share/man/man8/cpufetch.8.gz"
|
||||
install -Dm644 "cpufetch.1" "$(DESTDIR)$(PREFIX)/share/man/man1/cpufetch.1.gz"
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)$(PREFIX)/bin/cpufetch"
|
||||
rm -f "$(DESTDIR)$(PREFIX)/share/licenses/cpufetch-git/LICENSE"
|
||||
rm -f "$(DESTDIR)$(PREFIX)/share/man/man8/cpufetch.8.gz"
|
||||
rm -f "$(DESTDIR)$(PREFIX)/share/man/man1/cpufetch.1.gz"
|
||||
|
||||
Reference in New Issue
Block a user