diff options
Diffstat (limited to 'man/Makefile')
-rw-r--r-- | man/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
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 |