From ac9b5fc70175459651df32731b35a9de9079ec2d Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Wed, 29 Jun 2022 11:45:52 +0100 Subject: Attempt to build metastore.1 man page like other targets. Doesn't work, but I'm not sure why. My make-fu is not strong enough! Do not merge! --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 $^ >$@ -- cgit v1.2.1