aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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