From 38a0077033ebdd51f730852256352a4663b0f034 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 20 Sep 2014 18:09:44 +0200
Subject: Generate a manpage
help2man should be enough so far.
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'Makefile')
diff --git a/Makefile b/Makefile
index 209ba14..a07ad22 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ LDFLAGS = `pkg-config --libs libssl jansson` -lpthread -lrt -ldl -lcurses
.PHONY: all clean
.SUFFIXES:
-targets = ponymap plugins/http.so plugins/irc.so plugins/ssh.so
+targets = ponymap ponymap.1 plugins/http.so plugins/irc.so plugins/ssh.so
all: $(targets)
@@ -19,5 +19,8 @@ clean:
ponymap: ponymap.c utils.c plugin-api.h siphash.c
$(CC) ponymap.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
+ponymap.1: ponymap
+ help2man -No $@ ./$<
+
plugins/%.so: plugins/%.c utils.c plugin-api.h
$(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) -shared -fPIC
--
cgit v1.2.3-70-g09d2