Generate text documentation from the troff source files.
This is done by make, in the 'docs' target, which is now part of the normal build process. Unfortunately, not all the games include troff sources. Getting decent HTML output from groff is still a difficult process which will not be attempted at this time. There are a few bugs in the 'install' and 'uninstall' rules. Not to mention that the documentation is sometimes inaccurate.
This commit is contained in:
parent
eab5aa2ec4
commit
c6f7d67623
16 changed files with 133 additions and 2801 deletions
|
|
@ -57,7 +57,7 @@ CFILES= vers.c actions.c chase.c command.c daemon.c \
|
|||
MISC_C=
|
||||
DOCSRC= aguide.mm
|
||||
#DOCS = $(PROGRAM).doc $(PROGRAM).html
|
||||
DOCS = arogue77.doc arogue77.html
|
||||
DOCS = $(PROGRAM).doc arogue77.html
|
||||
MISC = Makefile $(MISC_C) LICENSE.TXT $(PROGRAM).sln $(PROGRAM).vcproj $(DOCS)\
|
||||
$(DOCSRC)
|
||||
|
||||
|
|
@ -69,15 +69,30 @@ CFLAGS= $(COPTS) $(ROPTS)
|
|||
LIBS = @LIBS@
|
||||
RM = rm -f
|
||||
INSTALL=@INSTALL@
|
||||
GROFF=@GROFF@
|
||||
NROFF=@NROFF@
|
||||
COLCRT=@COLCRT@
|
||||
TBL=@TBL@
|
||||
|
||||
.SUFFIXES: .obj
|
||||
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) /c $*.c
|
||||
|
||||
all: $(PROGRAM) docs
|
||||
|
||||
$(PROGRAM): $(HDRS) $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
|
||||
|
||||
docs: $(DOCS)
|
||||
|
||||
$(PROGRAM).doc: aguide.mm
|
||||
if test "x$(GROFF)" != "x" ; then \
|
||||
$(GROFF) -P-c -P-b -P-u -t -mm -Tascii aguide.mm > $(PROGRAM).doc ;\
|
||||
elif test "x$(NROFF)" != "x" -a "x$(TBL)" != "x" -a "x$(COLCRT)" != "x" ; then \
|
||||
$(TBL) aguide.mm | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc ;\
|
||||
fi
|
||||
|
||||
install: $(PROGRAM)
|
||||
-touch test
|
||||
-if test ! -f $(DESTDIR)$(SCOREFILE) ; \
|
||||
|
|
@ -112,7 +127,7 @@ reinstall: uninstall install
|
|||
clean:
|
||||
$(RM) $(OBJS1)
|
||||
$(RM) $(OBJS2)
|
||||
$(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe $(PROGRAM).lck
|
||||
$(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe $(PROGRAM).lck $(PROGRAM).doc
|
||||
$(RM) $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).zip
|
||||
|
||||
dist.src:
|
||||
|
|
|
|||
1122
arogue7/arogue77.doc
1122
arogue7/arogue77.doc
File diff suppressed because it is too large
Load diff
|
|
@ -25,6 +25,11 @@ AC_TYPE_SIGNAL
|
|||
AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr _spawnl spawnl getpwuid loadav strerror setgid setuid getuid getgid])
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_CHECK_PROG([NROFF], [nroff], [nroff],)
|
||||
AC_CHECK_PROG([GROFF], [groff], [groff],)
|
||||
AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],)
|
||||
AC_CHECK_PROG([TBL], [tbl], [tbl],)
|
||||
|
||||
AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="arogue7"] )
|
||||
PROGRAM=$progname
|
||||
AC_SUBST(PROGRAM)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue