1
0
mirror of https://tildegit.org/tomasino/pb.git synced 2024-11-20 03:25:54 +01:00

swaps grep for awk in make help

This commit is contained in:
James Tomasino 2020-09-05 18:05:16 +00:00
parent 565d5b5fc6
commit 679a83f898

View File

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