diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-08-23 23:15:44 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-08-23 23:15:44 (EDT) |
commit | 8110e807eca17e55df9a549838f0aca97c1595fe (patch) | |
tree | 35b97c71e4e6887d75bba880717910baccb7b16d | |
parent | 2a1f94edc0e3edc9f6f4b449560d45aaad85dd47 (diff) |
Makefile.am: Add support for manual pages
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 6d6a857..3d83b01 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,13 +19,17 @@ include $(top_srcdir)/src/local.mk include $(top_srcdir)/lib/local.mk include $(top_srcdir)/lib/cmd/local.mk include $(top_srcdir)/lib/profile/local.mk +include $(top_srcdir)/man/local.mk include $(top_srcdir)/locale/local.mk include $(top_srcdir)/tests/local.mk +MANUAL = ProteanOS Development Kit Manual + bin_SCRIPTS = $(bin_sources:.sh=) pkgdata_SCRIPTS = $(pkgdata_sources:.sh=.sm) pkgdatacmd_SCRIPTS = $(pkgdatacmd_sources:.sh=.sm) pkgdataprofile_SCRIPTS = $(pkgdataprofile_sources:.sh=.sm) +man1_MANS = $(man1_sources:.1in=.1) locale_MESSAGES = $(locale_sources:.sh=.ms) noinst_DATA = $(locale_MESSAGES) .builddirstamp CLEANFILES = \ @@ -33,6 +37,7 @@ CLEANFILES = \ $(pkgdata_SCRIPTS) \ $(pkgdatacmd_SCRIPTS) \ $(pkgdataprofile_SCRIPTS) \ + $(man1_MANS) \ $(locale_MESSAGES) \ .builddirstamp pkgdatacmddir = $(pkgdatadir)/cmd @@ -46,6 +51,7 @@ sources = \ $(pkgdata_sources) \ $(pkgdatacmd_sources) \ $(pkgdataprofile_sources) \ + $(man1_sources) \ $(locale_sources) \ $(TESTS) \ tests/common.sh \ @@ -54,7 +60,7 @@ EXTRA_DIST = \ autogen.sh \ $(sources) -SUFFIXES = .sh .sm +SUFFIXES = .sh .sm .1in .1 .ms cmds = $$(printf '%s ' $(pkgdatacmd_SCRIPTS) | \ sed -e 's|[^ ]*/\([^ ]*\)\.sm |\1 |g') @@ -64,6 +70,7 @@ textdomain = $$(printf '%s\n' '$(PACKAGE)' | sed -e 's|-|_|g') do_subst = sed \ -e 's|[@]PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \ -e 's|[@]PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ + -e 's|[@]MANUAL[@]|$(MANUAL)|g' \ -e 's|[@]SH[@]|$(SH)|g' \ -e 's|[@]pkgdatadir[@]|$(pkgdatadir)|g' \ -e 's|[@]localedir[@]|$(localedir)|g' \ @@ -158,6 +165,10 @@ dist-hook: $(MKDIR_P) "$$(dirname $@)" $(do_subst) $< >$@ +.1in.1: + $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" + $(AM_V_at)$(do_subst) $< >$@ + .sh.ms: $(MKDIR_P) "$$(dirname $@)" cp $< $@ |