From 679a83f8982e1f687fbb468df894e1938d5adbce Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Sat, 5 Sep 2020 18:05:16 +0000 Subject: [PATCH] swaps grep for awk in make help --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a94100a..0ca8413 100644 --- a/Makefile +++ b/Makefile @@ -14,15 +14,15 @@ sharedir=$(DESTDIR)$(PREFIX)/share help: @echo "targets:" - @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ - | sed -n 's/^\(.*\): \(.*\)##\(.*\)/ \1|\3/p' \ + @awk -F '#' '/^[a-zA-Z0-9_-]+:.*?#/ { print $0 }' $(MAKEFILE_LIST) \ + | sed -n 's/^\(.*\): \(.*\)#\(.*\)/ \1|-\3/p' \ | column -t -s '|' -install: pb pb.1 ## system install +install: pb pb.1 # system install $(INSTALL_PROGRAM) pb $(bindir)/pb $(INSTALL_DATA) pb.1 $(sharedir)/man/man1/pb.1 -uninstall: ## system uninstall +uninstall: # system uninstall rm -f $(bindir)/pb rm -f $(sharedir)/man/man1/pb.1