Generate a manpage
help2man should be enough so far.
This commit is contained in:
5
Makefile
5
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
|
||||
|
||||
Reference in New Issue
Block a user