From fc1282b8a4e7f9ecbc63a0bd02ae5582e99d3b2b Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Fri, 20 Jul 2012 20:58:57 +0200
Subject: [PATCH] Build epydoc.conf using standard replace_vars_sed

This is just begging to be converted to a standard replace_vars_sed
rule, instead of custom sed calls.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1bb2b5347..f93be3eab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1031,8 +1031,8 @@ man/%.html.in: man/%.gen man/footer.html
 man/%: man/%.in  $(REPLACE_VARS_SED)
 	sed -f $(REPLACE_VARS_SED) < $< > $@
 
-epydoc.conf: epydoc.conf.in Makefile
-	sed -e 's#@MODULES@#$(strip $(lint_python_code))#g' < $< > $@
+epydoc.conf: epydoc.conf.in $(REPLACE_VARS_SED)
+	sed -f $(REPLACE_VARS_SED) < $< > $@
 
 vcs-version:
 	if test -d .git; then \
@@ -1189,6 +1189,7 @@ $(REPLACE_VARS_SED): Makefile stamp-directories
 	  echo 's#@GNTMASTERDGROUP@#$(MASTERD_GROUP)#g'; \
 	  echo 's#@GNTDAEMONSGROUP@#$(DAEMONS_GROUP)#g'; \
 	  echo 's#@CUSTOM_ENABLE_CONFD@#$(ENABLE_CONFD)#g'; \
+	  echo 's#@MODULES@#$(strip $(lint_python_code))#g'; \
 	} > $@
 
 # Using deferred evaluation
-- 
GitLab