From: Jordi Mallach Date: Sun, 19 Oct 2003 23:30:48 +0000 (+0000) Subject: Create html manpages when building nano. X-Git-Tag: v1.3.0~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3a420879d6392f3c105ce400fec6e4b2785afc05;p=nano.git Create html manpages when building nano. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1570 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 6c5f9a8b..df1cd011 100644 --- 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 index 282522db..fc52fc23 100644 --- 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 index 60f57307..666ccf00 100644 --- 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 index 282522db..fc52fc23 100644 --- 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 index 12267764..802eea68 100644 --- 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 > $@