From e6bb137aa20133589079d1378ecef8f7f1e9a84f Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 4 Feb 2023 22:02:09 -0500 Subject: Switch formatting from AWK to a C program. Due mostly to poor performance, calling out to the shell for time formatting quickly degrades in performance with a large list, this solves that problem. Yes, `gawk` has strftime, no, I don't want to use gawk. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2da16ac..5aeb748 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ PREFIX ?= /usr/local -all: strftime +CC ?= cc +CFLAGS ?= -D_DEFAULT_SOURCE -std=c99 -pedantic -Wall -O2 -s -install: strftime - install -m 755 strftime $(PREFIX)/bin/strftime +all: pm-fmtdb + +install: pm-fmtdb + install -m 755 pm-fmtdb $(PREFIX)/bin/pm-fmtdb install -m 755 pm $(PREFIX)/bin/pm clean: - rm -f strftime + rm -f pm-fmtdb -- cgit v1.2.3