+2014-04-02 Mike Frysinger <vapier@gentoo.org>
+ * doc/man/{,fr}/Makefile.am: Simplify the man rules still further.
+
2014-03-31 Chris Allegretta <chrisa@asty.org>
* doc/syntax/go.nanorc: basic go syntax highlighting
SUBDIRS =
+BUILT_SOURCES =
+
if USE_NLS
SUBDIRS += fr
endif
-BUILT_SOURCES =
dist_man_MANS = nano.1 rnano.1
-
-if GROFF_HTML
-BUILT_SOURCES += nano.1.html rnano.1.html
-endif
+html_pages = nano.1.html rnano.1.html
if USE_NANORC
dist_man_MANS += nanorc.5
-if GROFF_HTML
-BUILT_SOURCES += nanorc.5.html
-endif
+html_pages += nanorc.5.html
endif
-if GROFF_HTML
-dist_html_DATA = nano.1.html nanorc.5.html rnano.1.html
-
nano.1.html: nano.1
groff -t -mandoc -Thtml < $? > $@
nanorc.5.html: nanorc.5
groff -t -mandoc -Thtml < $? > $@
rnano.1.html: rnano.1
groff -t -mandoc -Thtml < $? > $@
+
+if GROFF_HTML
+BUILT_SOURCES += $(html_pages)
+dist_html_DATA = $(html_pages)
endif
EXTRA_DIST = $(BUILT_SOURCES)
htmldir = @htmldir@/fr
BUILT_SOURCES =
-dist_man_MANS = nano.1 rnano.1
-if GROFF_HTML
-BUILT_SOURCES += nano.1.html rnano.1.html
-endif
+dist_man_MANS = nano.1 rnano.1
+html_pages = nano.1.html rnano.1.html
if USE_NANORC
dist_man_MANS += nanorc.5
-if GROFF_HTML
-BUILT_SOURCES += nanorc.5.html
+html_pages += nanorc.5.html
endif
-endif
-
-if GROFF_HTML
-dist_html_DATA = nano.1.html nanorc.5.html rnano.1.html
nano.1.html: nano.1
groff -t -mandoc -Thtml < $? > $@
groff -t -mandoc -Thtml < $? > $@
rnano.1.html: rnano.1
groff -t -mandoc -Thtml < $? > $@
+
+if GROFF_HTML
+BUILT_SOURCES += $(html_pages)
+dist_html_DATA = $(html_pages)
endif
EXTRA_DIST = $(BUILT_SOURCES)