#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
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 $< $@