adding man pages
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 26 Mar 2022 08:58:00 +0000 (19:58 +1100)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 26 Mar 2022 08:58:00 +0000 (19:58 +1100)
Makefile

index c12a43971d0798f01a38c31b15bdecb7300ffdaa..eeba63637d90e63f28e4bb3df23cdb466c6b8657 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ SBINCFILES =
 #SBINFILES = overlay-boot overlay-go overlay-stop
 ETCFILES =
 MAN1FILES = 
-MAN8FILES =
+MAN8FILES = overlay-boot.8 overlay-go.8 overlay-stop.8
 HTMLDOC = $(MAN8FILES:%=%.html)
 VARLIBFILES = overlay-boot overlay-go overlay-stop functions reaper
 
@@ -17,18 +17,18 @@ all: asm/reaper
 asm/reaper: 
        $(MAKE) -C asm reaper
 
-$(VARLIBDIR)/:
+overlay-boot.8: README.adoc
+       a2x -d manpage -f manpage $^
+
+$(addprefix $(MAN8DIR)/,$(MAN8FILES)): overlay-boot.8 | $(MAN8DIR)/
+       cp $< $@
+
+$(MAN8DIR)/ $(VARLIBDIR)/:
        mkdir -p $@
 
 $(addprefix $(VARLIBDIR)/,$(VARLIBFILES)): $(VARLIBDIR)/%: % | $(VARLIBDIR)/
        cp -p $< $@
 
-#$(SBINDIR)/:
-#      mkdir -p $@
-#
-#$(addprefix $(SBINDIR)/,$(SBINFILES)): $(SBINDIR)/%: $(VARLIBDIR)/% | $(SBINDIR)/
-#      ln -sTf $< $@
-
 $(VARLIBDIR)/reaper: asm/reaper
        cp $< $@