From 84e03db449725f9481cf77f2a594d7dbcf9a7188 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 18:48:09 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 3 --- config.mk | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cb36b2c..fb6b061 100644 --- a/Makefile +++ b/Makefile @@ -17,15 +17,12 @@ check: timeprefix install: timeprefix mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" - mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/timeprefix" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" cp -- timeprefix "$(DESTDIR)$(PREFIX)/bin/" - cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/timeprefix/" cp -- timeprefix.1 "$(DESTDIR)$(MANPREFIX)/man1/" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/bin/timeprefix" - -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/timeprefix" -rm -- "$(DESTDIR)$(MANPREFIX)/man1/timeprefix.1" clean: diff --git a/config.mk b/config.mk index 6155069..aa81003 100644 --- a/config.mk +++ b/config.mk @@ -1,6 +1,8 @@ -PREFIX = /local/usr +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CFLAGS = -std=c99 -Wall -Wextra -O2 +CC = cc + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +CFLAGS = -std=c99 -Wall -O2 LDFLAGS = -s -- cgit v1.2.3-70-g09d2