diff options
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/doc/Makefile b/doc/Makefile index c7569e9..7982e0c 100644 --- a/doc/Makefile +++ b/doc/Makefile | |||
@@ -32,6 +32,8 @@ BUILDBOOT_TEMPLATE := book-enea-linux-release-info/doc/build_boot_template.xml | |||
32 | PKGDIFF_GEN_XML := book-enea-linux-release-info/doc/pkgdiff_generated.xml | 32 | PKGDIFF_GEN_XML := book-enea-linux-release-info/doc/pkgdiff_generated.xml |
33 | JIRA_ISSUES_GEN_XML := book-enea-linux-release-info/doc/jiraissues_generated.xml | 33 | JIRA_ISSUES_GEN_XML := book-enea-linux-release-info/doc/jiraissues_generated.xml |
34 | 34 | ||
35 | MANIFESTFILES_XML := book-enea-linux-release-info/doc/manifestfiles_generated.xml | ||
36 | |||
35 | 37 | ||
36 | # ----------------------------------------------------- | 38 | # ----------------------------------------------------- |
37 | #Path to DocBook make files and templates | 39 | #Path to DocBook make files and templates |
@@ -200,7 +202,7 @@ endif | |||
200 | endif | 202 | endif |
201 | 203 | ||
202 | # cleaninit cleans ALL tmpcommon and all s_* | 204 | # cleaninit cleans ALL tmpcommon and all s_* |
203 | clean: cleaninit cleanbuildboot cleanpkgdiff cleanissues | 205 | clean: cleaninit cleanbuildboot cleanpkgdiff cleanissues cleanmanifest |
204 | @echo "Cleaning build results and temporary files" | 206 | @echo "Cleaning build results and temporary files" |
205 | $(VERB)rm -rf doc tmp 2>/dev/null | 207 | $(VERB)rm -rf doc tmp 2>/dev/null |
206 | ifneq ($(filter book-%, $(COMPONENTS)),) | 208 | ifneq ($(filter book-%, $(COMPONENTS)),) |
@@ -226,6 +228,11 @@ inittargets: s_targets | |||
226 | s_manifest: $(TMPCLONEROOT_MANIFEST) | 228 | s_manifest: $(TMPCLONEROOT_MANIFEST) |
227 | $(VERB)rm s_manifest 2>/dev/null; ln -s $(TMPCLONEROOT_MANIFEST) s_manifest | 229 | $(VERB)rm s_manifest 2>/dev/null; ln -s $(TMPCLONEROOT_MANIFEST) s_manifest |
228 | 230 | ||
231 | cleanmanifest: | ||
232 | @echo "Cleaning generated manifestfilelist XML document file" | ||
233 | $(VERB)rm -f $(MANIFESTFILES_XML) 2>/dev/null | ||
234 | $(VERB)rm -rf "$(TMPCLONEROOT_MANIFEST)" s_manifest 2>/dev/null | ||
235 | |||
229 | $(TMPCLONEROOT_MANIFEST): | 236 | $(TMPCLONEROOT_MANIFEST): |
230 | $(VERB)if [ ! -d "$(TMPCLONEROOT)" ] ; then mkdir -p "$(TMPCLONEROOT)" ; fi | 237 | $(VERB)if [ ! -d "$(TMPCLONEROOT)" ] ; then mkdir -p "$(TMPCLONEROOT)" ; fi |
231 | $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)" ]; then mkdir -p "$(TMPCLONEROOT_MANIFEST)" ; fi | 238 | $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)" ]; then mkdir -p "$(TMPCLONEROOT_MANIFEST)" ; fi |
@@ -235,7 +242,14 @@ $(TMPCLONEROOT_MANIFEST): | |||
235 | $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)" ]; then echo "ERROR: Missing $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)"; exit 10 ; fi ; \ | 242 | $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)" ]; then echo "ERROR: Missing $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)"; exit 10 ; fi ; \ |
236 | TARGETDEFAULTXMLS=`cd $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR); ls -1 */default.xml 2>/dev/null` ; \ | 243 | TARGETDEFAULTXMLS=`cd $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR); ls -1 */default.xml 2>/dev/null` ; \ |
237 | echo "$$TARGETDEFAULTXMLS" | tr '\n' ' ' >$(TMPCLONEROOT_MANIFEST)/targetdefaultxmls.txt ; \ | 244 | echo "$$TARGETDEFAULTXMLS" | tr '\n' ' ' >$(TMPCLONEROOT_MANIFEST)/targetdefaultxmls.txt ; \ |
238 | echo "$$TARGETDEFAULTXMLS" | sed 's/\/.*//' | tr '\n' ' ' >$(TMPCLONEROOT_MANIFEST)/targetids.txt | 245 | echo "$$TARGETDEFAULTXMLS" | sed 's/\/.*//' | tr '\n' ' ' >$(TMPCLONEROOT_MANIFEST)/targetids.txt ; \ |
246 | echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" >$(MANIFESTFILES_XML) ; \ | ||
247 | echo "<!DOCTYPE section PUBLIC \"-//OASIS//DTD DocBook XML V4.2//EN\"" >>$(MANIFESTFILES_XML) ; \ | ||
248 | echo "\"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd\">" >>$(MANIFESTFILES_XML) ; \ | ||
249 | echo "<section id=\"manifestfiles\">" >>$(MANIFESTFILES_XML) ; \ | ||
250 | echo "<programlisting>$$TARGETDEFAULTXMLS</programlisting>" >>$(MANIFESTFILES_XML) ; \ | ||
251 | echo "</section>" >>$(MANIFESTFILES_XML) | ||
252 | |||
239 | 253 | ||
240 | # ----------------------------------------- | 254 | # ----------------------------------------- |
241 | # Use repo to auto-clone each target separately - VERY LARGE if there are many targets (5 targets => about 1.3 Gbytes) | 255 | # Use repo to auto-clone each target separately - VERY LARGE if there are many targets (5 targets => about 1.3 Gbytes) |