1
0
mirror of https://tildegit.org/tomasino/pb.git synced 2024-12-23 03:25:18 +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: help:
@echo "targets:" @echo "targets:"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ @awk -F '#' '/^[a-zA-Z0-9_-]+:.*?#/ { print $0 }' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\): \(.*\)##\(.*\)/ \1|\3/p' \ | sed -n 's/^\(.*\): \(.*\)#\(.*\)/ \1|-\3/p' \
| column -t -s '|' | column -t -s '|'
install: pb pb.1 ## system install install: pb pb.1 # system install
$(INSTALL_PROGRAM) pb $(bindir)/pb $(INSTALL_PROGRAM) pb $(bindir)/pb
$(INSTALL_DATA) pb.1 $(sharedir)/man/man1/pb.1 $(INSTALL_DATA) pb.1 $(sharedir)/man/man1/pb.1
uninstall: ## system uninstall uninstall: # system uninstall
rm -f $(bindir)/pb rm -f $(bindir)/pb
rm -f $(sharedir)/man/man1/pb.1 rm -f $(sharedir)/man/man1/pb.1