diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-07-21 09:14:59 -0400 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-07-21 09:14:59 -0400 |
| commit | 19d371cb403cc223eabe80e52a19beea04b42a84 (patch) | |
| tree | 2ce2bbb29910ac8e5e4e00438e6532aabaef130f /Documentation/DocBook | |
| parent | 50692f8c6b6a27ffed9b5b7206ca6682a60ff354 (diff) | |
| parent | c76282a0ef4661a4e57a5f1defa3cfbb5923588d (diff) | |
Hand merged
Diffstat (limited to 'Documentation/DocBook')
| -rw-r--r-- | Documentation/DocBook/Makefile | 30 | ||||
| -rw-r--r-- | Documentation/DocBook/man/Makefile | 3 | ||||
| -rw-r--r-- | Documentation/DocBook/sis900.tmpl | 2 |
3 files changed, 28 insertions, 7 deletions
diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile index ec52000ea6f3..4f992e5761dc 100644 --- a/Documentation/DocBook/Makefile +++ b/Documentation/DocBook/Makefile @@ -20,10 +20,11 @@ DOCBOOKS := wanbook.sgml z8530book.sgml mcabook.sgml videobook.sgml \ # file.tmpl --> file.sgml +--> file.ps (psdocs) # +--> file.pdf (pdfdocs) # +--> DIR=file (htmldocs) +# +--> man/ (mandocs) ### # The targets that may be used. -.PHONY: sgmldocs psdocs pdfdocs htmldocs clean mrproper +.PHONY: sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs BOOKS := $(addprefix $(obj)/,$(DOCBOOKS)) sgmldocs: $(BOOKS) @@ -37,10 +38,18 @@ pdfdocs: $(PDF) HTML := $(patsubst %.sgml, %.html, $(BOOKS)) htmldocs: $(HTML) +MAN := $(patsubst %.sgml, %.9, $(BOOKS)) +mandocs: $(MAN) + +installmandocs: mandocs + $(MAKEMAN) install Documentation/DocBook/man + ### #External programs used KERNELDOC = scripts/kernel-doc DOCPROC = scripts/docproc +SPLITMAN = $(PERL) $(srctree)/scripts/split-man +MAKEMAN = $(PERL) $(srctree)/scripts/makeman ### # DOCPROC is used for two purposes: @@ -128,6 +137,13 @@ quiet_cmd_db2html = DB2HTML $@ cp $(PNG-$(basename $(notdir $@))) $(patsubst %.html,%,$@); fi ### +# Rule to generate man files - output is placed in the man subdirectory + +%.9: %.sgml + $(SPLITMAN) $< $(objtree)/Documentation/DocBook/man "$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)" + $(MAKEMAN) convert $(objtree)/Documentation/DocBook/man $< + +### # Rules to generate postscripts and PNG imgages from .fig format files quiet_cmd_fig2eps = FIG2EPS $@ cmd_fig2eps = fig2dev -Leps $< $@ @@ -157,10 +173,10 @@ quiet_cmd_fig2png = FIG2PNG $@ # Help targets as used by the top-level makefile dochelp: @echo ' Linux kernel internal documentation in different formats:' - @echo ' sgmldocs (SGML), psdocs (Postscript), pdfdocs (PDF), htmldocs (HTML)' + @echo ' sgmldocs (SGML), psdocs (Postscript), pdfdocs (PDF)' + @echo ' htmldocs (HTML), mandocs (man pages, use installmandocs to install)' ### -# clean and mrproper as used by the top-level makefile # Temporary files left by various tools clean-files := $(DOCBOOKS) \ $(patsubst %.sgml, %.dvi, $(DOCBOOKS)) \ @@ -171,10 +187,14 @@ clean-files := $(DOCBOOKS) \ $(patsubst %.sgml, %.ps, $(DOCBOOKS)) \ $(patsubst %.sgml, %.pdf, $(DOCBOOKS)) \ $(patsubst %.sgml, %.html, $(DOCBOOKS)) \ - $(patsubst %.fig,%.eps, $(IMG-parportbook)) \ - $(patsubst %.fig,%.png, $(IMG-parportbook)) \ + $(patsubst %.sgml, %.9, $(DOCBOOKS)) \ + $(patsubst %.fig,%.eps, $(IMG-parportbook)) \ + $(patsubst %.fig,%.png, $(IMG-parportbook)) \ $(C-procfs-example) ifneq ($(wildcard $(patsubst %.html,%,$(HTML))),) clean-rule := rm -rf $(wildcard $(patsubst %.html,%,$(HTML))) endif + +#man put files in man subdir - traverse down +subdir- := man/ diff --git a/Documentation/DocBook/man/Makefile b/Documentation/DocBook/man/Makefile new file mode 100644 index 000000000000..4fb7ea0f7ac8 --- /dev/null +++ b/Documentation/DocBook/man/Makefile @@ -0,0 +1,3 @@ +# Rules are put in Documentation/DocBook + +clean-files := *.9.gz *.sgml manpage.links manpage.refs diff --git a/Documentation/DocBook/sis900.tmpl b/Documentation/DocBook/sis900.tmpl index f8d24d47cb10..305b327c8a05 100644 --- a/Documentation/DocBook/sis900.tmpl +++ b/Documentation/DocBook/sis900.tmpl @@ -471,8 +471,6 @@ when configuring the kernel. Build the kernel image in the usual way </Para> <Para><screen> -make dep - make clean make bzlilo |
