From 5a5406925c1adaadd8390f8a390fb4305ac245e3 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Wed, 14 Apr 2021 14:54:24 +0200 Subject: [PATCH] [v0.97] Add optimization flags to Makefile. Rename man page from 8 to 1 --- Makefile | 9 +++++---- cpufetch.8 => cpufetch.1 | 0 2 files changed, 5 insertions(+), 4 deletions(-) rename cpufetch.8 => cpufetch.1 (100%) diff --git a/Makefile b/Makefile index f7d5141..0e91cee 100644 --- a/Makefile +++ b/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" diff --git a/cpufetch.8 b/cpufetch.1 similarity index 100% rename from cpufetch.8 rename to cpufetch.1