From da0849ba6bf223f1937c80ccb32cd0558f31d6a5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 27 Dec 2018 19:10:19 -0500 Subject: man/local.mk: Rewrite and rename do_subst --- (limited to 'man') diff --git a/man/local.mk b/man/local.mk index 386d6b5..b08aab6 100644 --- a/man/local.mk +++ b/man/local.mk @@ -41,14 +41,13 @@ CLEANFILES += \ 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' +man_subst = sed \ + -e "s|[@]SOURCE[@]|$(PACKAGE_STRING)|g" \ + -e 's|[@]MANUAL[@]|$(MANUAL)|g' .1in.1: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" - $(AM_V_at)$(do_subst) $< >$@ + $(AM_V_at)$(man_subst) $< >$@ $(man3_MANS): %reldir%/Tags -- cgit v0.9.1