Misc: Add Asciidoc man pages

Add Asciidoc man pages. The old man page is still kept, and you need to
run "make docs" to generate the new man pages and a HTML version of it.
An Asciidoc man page for compton-trans is not added yet.
This commit is contained in:
Richard Grenville
2012-11-01 12:44:09 +08:00
parent fb2ca16cb8
commit 46dfd1a766
4 changed files with 223 additions and 0 deletions

View File

@ -52,6 +52,12 @@ OBJS = compton.o
compton: $(OBJS)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
docs:
# HTML documentation
asciidoc man/compton.1.asciidoc
# man page
a2x --format manpage man/compton.1.asciidoc
install: compton
@install -Dm755 compton "$(DESTDIR)$(BINDIR)"/compton
@install -Dm755 bin/compton-trans "$(DESTDIR)$(BINDIR)"/compton-trans