summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-07-30 20:57:13 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-08-01 14:20:55 +0200
commitece893c024eea64ed240a0490ac7d4e6027ba72f (patch)
tree0ca7083a43cbfb0fbee756f12150e02c4d81e9d0 /Makefile
parente67acee2089dd957d629b0e6faaa796e356b05dd (diff)
Makefile, cmd.mk, *.mk: Allow using different names for basic commands
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7ca520426..29276f56f 100644
--- a/Makefile
+++ b/Makefile
@@ -37,12 +37,19 @@ MAKEFLAGS += --warn-undefined-variables
srcdir := .
+
+include $(srcdir)/lib/cmd.mk
+
+
MANDIR := $(srcdir)
MANEXT := \.[0-9]\w*
-MANPAGES := $(sort $(shell find $(MANDIR)/man*/ -type f | grep '$(MANEXT)'))
-MANDIRS := $(sort $(shell find $(MANDIR)/man* -type d))
+MANPAGES := $(shell $(FIND) $(MANDIR)/man*/ -type f \
+ | $(GREP) '$(MANEXT)' \
+ | $(SORT))
+MANDIRS := $(shell $(FIND) $(MANDIR)/man* -type d \
+ | $(SORT))
.PHONY: all