3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

build: Add framework for handling manpages in AsciiDoc format

This commit is contained in:
Marcel Holtmann 2014-08-08 21:48:53 -07:00
parent 185ab9b64a
commit fda0593b44
3 changed files with 41 additions and 1 deletions

1
.gitignore vendored
View File

@ -22,6 +22,7 @@ src/iwd
client/iwctl client/iwctl
monitor/iwmon monitor/iwmon
tools/hwsim tools/hwsim
doc/iwmon.1
unit/test-pbkdf2-sha1 unit/test-pbkdf2-sha1
unit/test-prf-sha1 unit/test-prf-sha1
unit/*.log unit/*.log

View File

@ -76,11 +76,17 @@ unit_test_ie_LDADD = ell/libell-internal.la
TESTS = $(unit_tests) TESTS = $(unit_tests)
manual_pages = doc/iwmon.1
dist_man_MANS = $(manual_pages)
EXTRA_DIST = $(manual_pages:.1=.txt)
AM_CFLAGS = -fvisibility=hidden AM_CFLAGS = -fvisibility=hidden
MAINTAINERCLEANFILES = Makefile.in configure config.h.in aclocal.m4 MAINTAINERCLEANFILES = Makefile.in configure config.h.in aclocal.m4
DISTCLEANFILES = $(BUILT_SOURCES) $(unit_tests) DISTCLEANFILES = $(BUILT_SOURCES) $(unit_tests) $(manual_pages)
BUILT_SOURCES = ell/internal BUILT_SOURCES = ell/internal
@ -92,5 +98,8 @@ ell/internal: Makefile
fi \ fi \
done > $@ done > $@
%.1: %.txt
$(AM_V_GEN)a2x --doctype manpage --format manpage $(srcdir)/$<
maintainer-clean-local: maintainer-clean-local:
-rm -rf build-aux ell -rm -rf build-aux ell

30
doc/iwmon.txt Normal file
View File

@ -0,0 +1,30 @@
IWMON(1)
========
:doctype: manpage
NAME
----
iwmon - Wireless monitor
SYNOPSIS
--------
*iwmon* ['OPTIONS']
DESCRIPTION
-----------
The iwmon(1) command provides access to the wireless subsystem commands,
responses and events from the nl80211 generic netlink interface.
AUTHOR
------
iwmon was originally written by Marcel Holtmann.
COPYING
-------
Free use of this software is granted under ther terms of the GNU Lesser
General Public Licenses (LGPL).