diff options
Diffstat (limited to '')
-rw-r--r-- | share/mk/src/man.mk (renamed from share/mk/src.mk) | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/share/mk/src.mk b/share/mk/src/man.mk index 20c0037..424655f 100644 --- a/share/mk/src.mk +++ b/share/mk/src/man.mk @@ -2,17 +2,16 @@ # SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception -ifndef MAKEFILE_SRC_INCLUDED -MAKEFILE_SRC_INCLUDED := 1 +ifndef MAKEFILE_SRC_MAN_INCLUDED +MAKEFILE_SRC_MAN_INCLUDED := 1 -include $(MAKEFILEDIR)/configure/build-depends/findutils.mk -include $(MAKEFILEDIR)/configure/build-depends/grep.mk -include $(MAKEFILEDIR)/configure/build-depends/sed.mk -include $(MAKEFILEDIR)/configure/src.mk - - -SORTMAN := $(srcdir)/scripts/sortman +include $(MAKEFILEDIR)/configure/build-depends/findutils/find.mk +include $(MAKEFILEDIR)/configure/build-depends/findutils/xargs.mk +include $(MAKEFILEDIR)/configure/build-depends/grep/grep.mk +include $(MAKEFILEDIR)/configure/build-depends/sed/sed.mk +include $(MAKEFILEDIR)/configure/directory_variables/src.mk +include $(MAKEFILEDIR)/src/sortman.mk MANEXT := \(\.[[:digit:]]\([[:alpha:]][[:alnum:]]*\)\?\>\|\.man\)\+\(\.man\|\.in\)*$ @@ -32,17 +31,14 @@ MANINTROPAGES := $(shell $(FIND) $(MANDIR)/* -type f \ $(foreach s, $(MANSECTIONS), \ - $(eval MAN$(s)DIR := $(MANDIR)/man$(s))) - -$(foreach s, $(MANSECTIONS), \ $(eval MAN$(s)PAGES := \ $(filter-out $(MANINTROPAGES), \ - $(filter $(MANDIR)/man$(s)/%, \ + $(filter $(MAN$(s)DIR)/%, \ $(filter %.$(s), \ $(MANPAGES)))))) $(foreach s, $(MANSECTIONS), \ $(eval MAN$(s)INTROPAGE := \ - $(filter $(MANDIR)/man$(s)/%, \ + $(filter $(MAN$(s)DIR)/%, \ $(filter %.$(s), \ $(MANINTROPAGES))))) @@ -57,6 +53,7 @@ NONSO_MDOC := $(shell $(FIND) $(MANDIR)/* -type f \ | $(XARGS) $(GREP) -l '^\.Dt ' \ | $(SORTMAN) \ | $(SED) 's,:,\\:,g') +SO_MAN := $(filter-out $(NONSO_MAN) $(NONSO_MDOC), $(MANPAGES)) endif # include guard |