MANUAL = Distribution Build System #man1_sources = \ # opkbuild.1in \ # ob-checkbuilddeps.1in \ # ob-buildenv.1in \ # ob-unpacksource.1in \ # ob-applypatches.1in \ # ob-installplatconf.1in \ # ob-installdocs.1in \ # ob-gencontrol.1in \ # ob-buildopk.1in \ # ob-genchanges.1in man1_MANS = $(man1_sources:.1in=.1) man3_MANS = \ %reldir%/ob_parse_changelog.3 \ %reldir%/ob_parse_dep.3 SUFFIXES += .1in .1 CLEANFILES += \ %reldir%/Tags \ $(man1_MANS) \ $(man3_MANS) EXTRA_DIST += \ $(man1_sources) do_subst = sed \ -e 's|@[@]PACKAGE_NAME[@]@|$(PACKAGE_NAME)|g' \ -e "s|@[@]PACKAGE_VERSION[@]@|$(PACKAGE_VERSION_GIT)|g" \ -e 's|@[@]PACKAGE_DESCRIPTION[@]@|$(MANUAL)|g' .1in.1: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" $(AM_V_at)$(do_subst) $< >$@ $(man3_MANS): %reldir%/Tags %reldir%/Tags: $(libopkbuild_sources) $(EXTRA_libopkbuild_sources) $(AM_V_GEN)libopkbuild="$(libdatadir)/libopkbuild.$(SHSOEXT)"; \ libopkbuild="$${libopkbuild}.$(libopkbuild_shsoversion)"; \ '$(srcdir)/tools/shman.sh' \ -s "$(PACKAGE_STRING)" -m '$(MANUAL)' -S "$${libopkbuild}" \ -b '$(srcdir)' -d %reldir% -t $@ \ $(libopkbuild_sources) $(EXTRA_libopkbuild_sources)