-docs/users_guide_DOCBOOK_SOURCES := \
- $(wildcard docs/users_guide/*.xml) \
- $(basename $(wildcard docs/users_guide/*.xml.in))
+docs/users_guide_GENERATED_DOCBOOK_SOURCES := \
+ docs/users_guide/users_guide.xml \
+ docs/users_guide/what_glasgow_exts_does.gen.xml
+
+# sort remove duplicates
+docs/users_guide_DOCBOOK_SOURCES := \
+ $(sort $(docs/users_guide_GENERATED_DOCBOOK_SOURCES) \
+ $(wildcard docs/users_guide/*.xml) \
+ $(basename $(wildcard docs/users_guide/*.xml.in)))
+
+$(docs/users_guide_GENERATED_DOCBOOK_SOURCES): %.xml: inplace/bin/mkUserGuidePart$(exeext)
+ inplace/bin/mkUserGuidePart$(exeext) $@