diff options
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/doc/Makefile b/doc/Makefile index f3cc297..aa26339 100644 --- a/doc/Makefile +++ b/doc/Makefile | |||
@@ -22,10 +22,11 @@ CURRENTHASH := $(shell git log -1 --pretty=format:%H 2>/dev/null) | |||
22 | CURRENTURL := $(shell git remote show origin | sed -n '/Fetch URL: /s/^.*URL: //p' 2>/dev/null) | 22 | CURRENTURL := $(shell git remote show origin | sed -n '/Fetch URL: /s/^.*URL: //p' 2>/dev/null) |
23 | 23 | ||
24 | # ******************* AutoGenerated chapter from template and target READMEs ******* | 24 | # ******************* AutoGenerated chapter from template and target READMEs ******* |
25 | BUILDBOOT_XML := book-enea-linux-release-info/doc/build_boot_generated.xml | 25 | BUILDBOOT_XML := book-enea-linux-release-info/doc/build_boot_generated.xml |
26 | BUILDBOOT_TEMPLATE := book-enea-linux-release-info/doc/build_boot_template.xml | 26 | BUILDBOOT_TEMPLATE := book-enea-linux-release-info/doc/build_boot_template.xml |
27 | 27 | ||
28 | PKGDIFF_GEN_XML := book-enea-linux-release-info/doc/pkgdiff_generated.xml | 28 | PKGDIFF_GEN_XML := book-enea-linux-release-info/doc/pkgdiff_generated.xml |
29 | JIRA_ISSUES_GEN_XML := book-enea-linux-release-info/doc/jiraissues_generated.xml | ||
29 | 30 | ||
30 | 31 | ||
31 | # ----------------------------------------------------- | 32 | # ----------------------------------------------------- |
@@ -130,7 +131,7 @@ ifeq ($(DOCBOOK_TOOLS_VERSIONS),yes) | |||
130 | endif | 131 | endif |
131 | 132 | ||
132 | # We rely on make doing these in order left to right | 133 | # We rely on make doing these in order left to right |
133 | init: initbuild inittargets initpardoc initbuildboot initpkgdiff | 134 | init: initbuild inittargets initpardoc initbuildboot initpkgdiff initissues |
134 | pullall: pullbuild pulltargets | 135 | pullall: pullbuild pulltargets |
135 | 136 | ||
136 | # If no COMP, iterate over books-* in COMPONENTS with make doc | 137 | # If no COMP, iterate over books-* in COMPONENTS with make doc |
@@ -189,7 +190,7 @@ endif | |||
189 | endif | 190 | endif |
190 | 191 | ||
191 | # cleaninit cleans ALL tmpcommon and all s_* and generated build_boot chapter xml | 192 | # cleaninit cleans ALL tmpcommon and all s_* and generated build_boot chapter xml |
192 | clean: cleaninit cleanbuildboot cleanpkgdiff | 193 | clean: cleaninit cleanbuildboot cleanpkgdiff cleanissues |
193 | $(VERB)rm -rf doc tmp 2>/dev/null | 194 | $(VERB)rm -rf doc tmp 2>/dev/null |
194 | ifneq ($(filter book-%, $(COMPONENTS)),) | 195 | ifneq ($(filter book-%, $(COMPONENTS)),) |
195 | $(VERB)for comp in $(filter book-%, $(COMPONENTS)); do \ | 196 | $(VERB)for comp in $(filter book-%, $(COMPONENTS)); do \ |
@@ -282,7 +283,7 @@ $(BUILDBOOT_XML): s_targets $(BUILDBOOT_TEMPLATE) | |||
282 | fi | 283 | fi |
283 | 284 | ||
284 | # **************************************************************************** | 285 | # **************************************************************************** |
285 | # ***** Create XML section with package diff | 286 | # ***** Create Package DIFF XML section |
286 | 287 | ||
287 | initpkgdiff: $(PKGDIFF_GEN_XML) | 288 | initpkgdiff: $(PKGDIFF_GEN_XML) |
288 | 289 | ||
@@ -291,7 +292,20 @@ cleanpkgdiff: | |||
291 | 292 | ||
292 | $(PKGDIFF_GEN_XML): | 293 | $(PKGDIFF_GEN_XML): |
293 | $(VERB)PREVIOUS_BL=`egrep '"prev_baseline"' docsrc_common/pardoc-distro.xml | sed 's/^.*<phrase>//;s/<\/phrase>.*$$//'` ; \ | 294 | $(VERB)PREVIOUS_BL=`egrep '"prev_baseline"' docsrc_common/pardoc-distro.xml | sed 's/^.*<phrase>//;s/<\/phrase>.*$$//'` ; \ |
294 | echo "Generating $(PKGDIFF_GEN_XML) compared to $$PREVIOUS_BL" ; \ | 295 | echo "Generating $(PKGDIFF_GEN_XML) compared to $$PREVIOUS_BL, using gen_pkgdiff.py" ; \ |
295 | python gen_pkgdiff.py >$(PKGDIFF_GEN_XML) | 296 | python gen_pkgdiff.py >$(PKGDIFF_GEN_XML) |
296 | 297 | ||
298 | |||
299 | # **************************************************************************** | ||
300 | # ***** Create Jira Issues XML section for the known bugs chapter | ||
301 | |||
302 | initissues: $(JIRA_ISSUES_GEN_XML) | ||
303 | |||
304 | cleanissues: | ||
305 | $(VERB)rm -f $(JIRA_ISSUES_GEN_XML) 2>/dev/null | ||
306 | |||
307 | $(JIRA_ISSUES_GEN_XML): | ||
308 | @echo "Generating $(JIRA_ISSUES_GEN_XML), fetching from Jira using gen_known_issues.py" | ||
309 | $(VERB)python gen_known_issues.py >$(JIRA_ISSUES_GEN_XML) | ||
310 | |||
297 | # **************************************************************************** | 311 | # **************************************************************************** |