aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-19 22:02:45 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-19 22:02:45 -0700
commitf824d3f3e2e3d3f1d441b94e18d7991ff523cef8 (patch)
tree99676777dd5550b4a0e6aa849f136769c0b6ff21 /Makefile
parent5d5817c2a3d21e91db4eaaf607ff881d71b57638 (diff)
Added markdown manpage, which converts to roff using pandoc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7ff7f5f..e4d0dfb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ ALL_FLAGS=$(CFLAGS) -DBP_NAME="\"$(NAME)\"" $(EXTRA) $(CWARN) $(G) $(O)
CFILES=pattern.c definitions.c utils.c match.c files.c print.c json.c
OBJFILES=$(CFILES:.c=.o)
-all: $(NAME) tags
+all: $(NAME) bp.1
%.o: %.c %.h types.h
$(CC) -c $(ALL_FLAGS) -o $@ $<
@@ -20,6 +20,9 @@ all: $(NAME) tags
$(NAME): $(OBJFILES) bp.c
$(CC) $(ALL_FLAGS) -o $@ $(OBJFILES) bp.c
+bp.1: bp.1.md
+ pandoc -s $< -t man -o $@
+
tags: $(CFILES) bp.c
ctags *.c *.h