summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
Diffstat (limited to 'man')
-rw-r--r--man/.gitignore1
-rw-r--r--man/Makefile9
2 files changed, 6 insertions, 4 deletions
diff --git a/man/.gitignore b/man/.gitignore
index d928e5a83f..1e3a647575 100644
--- a/man/.gitignore
+++ b/man/.gitignore
@@ -3,3 +3,4 @@
/*.[13578]
/*.html
/custom-entities.ent
+/custom-entities.ent.in
diff --git a/man/Makefile b/man/Makefile
index edba211499..87dee0b725 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -23,10 +23,11 @@
include $(dir $(lastword $(MAKEFILE_LIST)))/../config.mk
include $(topsrcdir)/build-aux/Makefile.head.mk
-$(outdir)/custom-entities.ent: configure.ac
- $(AM_V_GEN)$(MKDIR_P) $(dir $@)
+$(srcdir)/custom-entities.ent.in: $(outdir)/.var.sd.substitution_keys
$(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
- printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
- > $@ # '
+ printf '<!ENTITY %s "@%s@">\n' $(foreach v,$(sd.substitution_keys),$v $v)) \
+ > $@
+files.src.gen += custom-entities.ent.in
+sd.sed_files += custom-entities.ent
include $(topsrcdir)/build-aux/Makefile.tail.mk