summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-20 18:09:44 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-20 18:12:55 +0200
commit38a0077033ebdd51f730852256352a4663b0f034 (patch)
tree2a6a411d8ec4eec541d76dad699a581b6a75c498 /Makefile
parent01c2bfa5a476a5dbeb74d30c79bf8db62b6be417 (diff)
downloadponymap-38a0077033ebdd51f730852256352a4663b0f034.tar.gz
ponymap-38a0077033ebdd51f730852256352a4663b0f034.tar.xz
ponymap-38a0077033ebdd51f730852256352a4663b0f034.zip
Generate a manpage
help2man should be enough so far.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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