Revision 2eb8ec17

b/Makefile.am
5 5

  
6 6
SUBDIRS = src
7 7

  
8
EXTRA_DIST = README LICENSE
8
man_MANS = spinserver.1 spinviewer.1 
9
MAN_TEXT_FILES=man-spinserver.txt man-spinviewer.txt
10
EXTRA_DIST = README LICENSE $(man_MANS) $(MAN_TEXT_FILES)
11

  
12
MAINTAINERCLEANFILES = $(man_MANS)
13

  
14
# The man pages depend on the --help strings and the version number.
15
common_mandeps = $(top_srcdir)/configure.ac
16

  
17
# Depend on the source, not the binary; we don't need to regenerate the
18
# binary when any source file changes, only the main one.
19
# Use -o so that the `missing' program can infer the output file.
20
spinserver.1: $(top_srcdir)/src/spin/spinServer.cpp $(common_mandeps) $(top_srcdir)/man-spinserver.txt
21
	$(HELP2MAN) --include=man-spinserver.txt --name="server for the SPIN Framework" --no-info $(top_builddir)/src/spin/spinserver -o $@
22

  
23
spinviewer.1: $(top_srcdir)/src/spin/spinViewer.cpp $(common_mandeps) $(top_srcdir)/man-spinviewer.txt
24
	$(HELP2MAN) --include=man-spinviewer.txt --name="3D viewer for the SPIN Framework" --no-info $(top_builddir)/src/spin/spinviewer -o $@
9 25

  
10 26
wrappers:
11 27
	@echo ""; \
......
19 35
	$(MAKE) -C src/spin doc
20 36

  
21 37
INCLUDES = src/tinyxml
38

  
b/configure.ac
182 182
	[with_gui=$enableval],
183 183
	[with_gui=no])
184 184

  
185
# GNU help2man creates man pages from --help output; in many cases, this
186
# is sufficient, and obviates the need to maintain man pages separately.
187
# However, this means invoking executables, which we generally cannot do
188
# when cross-compiling, so we test to avoid that (the variable
189
# "cross_compiling" is set by AC_PROG_CC).
190
if test $cross_compiling = no; then
191
    AM_MISSING_PROG(HELP2MAN, help2man)
192
else
193
    HELP2MAN=:
194
fi
195

  
185 196
AM_CONDITIONAL(ENABLE_EDITOR, [test "x$with_gui" = xyes])
186 197

  
187 198

  
b/man-spinserver.txt
1
[SYNOPSIS]
2
spinserver [options] <scene-to-load.xml>
3

  
4
[REPORTING BUGS]
5
https://sourceforge.net/apps/trac/spinframework/
6

  
7
[SEE ALSO]
8
spinviewer (1)
9

  
b/man-spinviewer.txt
1
[SYNOPSIS]
2
spinviewer [options]
3

  
4
[REPORTING BUGS]
5
https://sourceforge.net/apps/trac/spinframework/
6

  
7
[SEE ALSO]
8
spinserver (1)
9

  

Also available in: Unified diff