[v0.97] Add optimization flags to Makefile. Rename man page from 8 to 1

This commit is contained in:
Dr-Noob
2021-04-14 14:54:24 +02:00
parent 4023afb95f
commit 5a5406925c
2 changed files with 5 additions and 4 deletions

View File

@@ -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"