commit 3a420879d6392f3c105ce400fec6e4b2785afc05
parent c1f630e914b873860a798d99f861dbef48bf6fb8
Author: Jordi Mallach <jordi@gnu.org>
Date: Sun, 19 Oct 2003 23:30:48 +0000
Create html manpages when building nano.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1570 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
5 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -31,7 +31,8 @@ CVS code -
disabled if justification is disabled. (DLR)
- Make sure the "historylog" option isn't included at all if
NANO_SMALL is defined. (DLR)
- - Source reorganization: move code to src/, docs to doc/. (Jordi)
+ - Source reorganization: move code to src/, docs to doc/.
+ (Jordi)
- Translation updates (see po/ChangeLog for details).
- Since SAMELINEWRAP is only used in nano.c, make it a static
variable in nano.c instead of a flag, and surround all
@@ -60,6 +61,10 @@ CVS code -
enabled, remove duplicate wrap_at prototype, and define
DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h
instead of all over the code. (DLR)
+ - Autogenerate the html versions of the manpages in the
+ Makefile.am's in doc/man/, make sure that they're properly
+ installed via "make dist", and make sure that "make distcheck"
+ works too. (Jordi, DLR and Jeff Bailey)
- files.c:
read_file()
- After we've read in a file and possibly converted it from
diff --git a/doc/man/.cvsignore b/doc/man/.cvsignore
@@ -1,2 +1,4 @@
Makefile
Makefile.in
+nanorc.5.html
+nano.1.html
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
@@ -2,4 +2,9 @@ SUBDIRS = fr
man_MANS = nano.1 nanorc.5
-EXTRA_DIST = nano.1.html nanorc.5.html $(man_MANS)
+BUILT_SOURCES = nano.1.html nanorc.5.html
+
+nano.1.html: nano.1
+ cat $< | groff -t -mandoc -Thtml > $@
+nanorc.5.html: nanorc.5
+ cat $< | groff -t -mandoc -Thtml > $@
diff --git a/doc/man/fr/.cvsignore b/doc/man/fr/.cvsignore
@@ -1,2 +1,4 @@
Makefile
Makefile.in
+nanorc.5.html
+nano.1.html
diff --git a/doc/man/fr/Makefile.am b/doc/man/fr/Makefile.am
@@ -1,5 +1,8 @@
-
-mandir = @mandir@/fr
man_MANS = nano.1 nanorc.5
-EXTRA_DIST = $(man_MANS)
+BUILT_SOURCES = nano.1.html nanorc.5.html
+
+nano.1.html: nano.1
+ cat $< | groff -t -mandoc -Thtml > $@
+nanorc.5.html: nanorc.5
+ cat $< | groff -t -mandoc -Thtml > $@