efivar-mandoc-groff.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 1f310c1814ab0dde06a1a66da847b6c75a1dab2e Mon Sep 17 00:00:00 2001
  2. From: DustDFG <dfgdust@gmail.com>
  3. Date: Mon, 28 Feb 2022 10:11:09 +0000
  4. Subject: [PATCH] Use groff as 'MANDOC'
  5. Signed-off-by: DustDFG <dfgdust@gmail.com>
  6. ---
  7. src/include/defaults.mk | 2 +-
  8. src/include/rules.mk | 4 ++--
  9. 2 files changed, 3 insertions(+), 3 deletions(-)
  10. diff --git a/src/include/defaults.mk b/src/include/defaults.mk
  11. index 632b155..1c88da1 100644
  12. --- a/src/include/defaults.mk
  13. +++ b/src/include/defaults.mk
  14. @@ -111,7 +111,7 @@ NM := $(CROSS_COMPILE)$(COMPILER)-nm
  15. RANLIB := $(CROSS_COMPILE)$(COMPILER)-ranlib
  16. ABIDW := abidw
  17. ABIDIFF := abidiff
  18. -MANDOC := mandoc
  19. +MANDOC := groff
  20. LDLIBS=$(foreach lib,$(LIBS),-l$(lib)) $(call pkg-config-ldlibs)
  21. diff --git a/src/include/rules.mk b/src/include/rules.mk
  22. index f309f86..a2f0cca 100644
  23. --- a/src/include/rules.mk
  24. +++ b/src/include/rules.mk
  25. @@ -21,10 +21,10 @@ family = $(foreach FAMILY_SUFFIX,$(FAMILY_SUFFIXES),$($(1)_$(FAMILY_SUFFIX)))
  26. $(AR) -cvqs $@ $^
  27. %.1 : %.1.mdoc
  28. - $(MANDOC) -mdoc -Tman -Ios=Linux $^ > $@
  29. + $(MANDOC) -mdoc -Tascii -Ios=Linux $^ > $@
  30. %.3 : %.3.mdoc
  31. - $(MANDOC) -mdoc -Tman -Ios=Linux $^ > $@
  32. + $(MANDOC) -mdoc -Tascii -Ios=Linux $^ > $@
  33. % : %.c
  34. --
  35. 2.20.1