summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spragg <adam@spra.gg>2022-06-29 11:45:52 +0100
committerAdam Spragg <adam@spra.gg>2022-06-29 15:30:23 +0100
commit84b1be27d9a7c0968cd63522dde14e55b5e6bd87 (patch)
tree58ba4857cf4b771d54448f218ac9d5c9935055ae
parent35c47cd0e7361d5f4c19339a8143c74417d21402 (diff)
Attempt to build metastore.1 man page like other targets.doc-markdown
Doesn't work, but I'm not sure why. My make-fu is not strong enough! Do not merge!
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f284f5a..7308857 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,7 @@ else
OBJS_DIR := ./obj/
BINS_DIR := ./bin/
LIBS_DIR := ./lib/
+ MANS_DIR := ./
endif
@@ -85,10 +86,11 @@ SLL_EXT := .a
### Default target
-all: libs bins man1/metastore.1
+all: libs bins mans
bins: $(BINS)
libs: $(LIBS)
+mans: $(MANS)
### Flags
MUSTHAVE_FLAGS := \
@@ -191,7 +193,7 @@ HIDE := $(HIDE_$(V))
### Rules for directories
-$(sort $(OBJS_DIR) $(BINS_DIR) $(LIBS_DIR)):
+$(sort $(OBJS_DIR) $(BINS_DIR) $(LIBS_DIR) $(MANS_DIR)man1/):
@mkdir -p $@
### Templated rules
@@ -316,7 +318,6 @@ $(SDEP): $(SRCS) $(PROJ_DIR)Makefile
done) >>$(SDEP)
$(MANS_DIR)man1/metastore.1: $(DOCS_DIR)metastore.md
- @mkdir -p $(MANS_DIR)man1
@echo " PANDOC $@"
$(HIDE)pandoc -s --shift-heading-level=-1 -f markdown -t man $^ >$@