Permalink
Browse files

Install man pages during a make install

This solution creates a subdirectory for each language-specific man
page because we need to override the mandir variable on a per-language
basis.

It would be nicer to keep everything within the top-level Makefile
if another way to specify each language's mandir could be found.
  • Loading branch information...
nickdowell committed Jan 28, 2017
1 parent a1a5136 commit f98238fd92d8763b3cefc8fb4e90b4d742fc62f9
View
@@ -346,19 +346,7 @@ dist_banks_DATA = \
#
if GENERATE_MAN_PAGES
man_in_files = data/amsynth.1.md data/amsynth.de.1.md data/amsynth.fr.1.md
man_out_files = $(man_in_files:.1.md=.1)
noinst_DATA = $(man_out_files)
data/%.1: data/%.1.md
pandoc -s -t man -V footer='$(PACKAGE_STRING)' -o $@ $<
EXTRA_DIST += $(man_in_files)
DISTCLEANFILES += $(man_out_files)
SUBDIRS += man
endif
View
@@ -169,6 +169,9 @@ AM_CONDITIONAL([DARWIN], [test "$(uname -s)" = "Darwin"])
AC_CONFIG_FILES([
Makefile
data/amsynth.desktop
man/Makefile
man/de/Makefile
man/fr/Makefile
po/Makefile.in
])
View
@@ -0,0 +1,11 @@
SUBDIRS = de fr
man_MANS = amsynth.1
amsynth.1: amsynth.1.md
pandoc -s -t man -V footer='$(PACKAGE_STRING)' -o $@ $<
EXTRA_DIST = amsynth.1.md
DISTCLEANFILES = $(man_MANS)
File renamed without changes.
View
@@ -0,0 +1,11 @@
mandir = @mandir@/de
man_MANS = amsynth.1
amsynth.1: amsynth.1.md
pandoc -s -t man -V footer='$(PACKAGE_STRING)' -o $@ $<
EXTRA_DIST = amsynth.1.md
DISTCLEANFILES = $(man_MANS)
File renamed without changes.
View
@@ -0,0 +1,11 @@
mandir = @mandir@/fr
man_MANS = amsynth.1
amsynth.1: amsynth.1.md
pandoc -s -t man -V footer='$(PACKAGE_STRING)' -o $@ $<
EXTRA_DIST = amsynth.1.md
DISTCLEANFILES = $(man_MANS)
File renamed without changes.

0 comments on commit f98238f

Please sign in to comment.