The patch below converts the #ifndef SYMBOL / #define SYMBOL / #endif symbol
[mirror/scst/.git] / doc / Makefile
1 COMMAND=linuxdoc --backend=
2
3 SOURCE_NAME=scst_pg
4
5 SOURCE=$(SOURCE_NAME).sgml
6
7 default: html txt pdf
8
9 all: html txt pdf tex dvi ps info lyx rtf
10
11 txt: $(SOURCE_NAME).txt
12
13 html: $(SOURCE_NAME).html
14
15 tex: $(SOURCE_NAME).tex
16
17 dvi: $(SOURCE_NAME).dvi
18
19 ps: $(SOURCE_NAME).ps
20
21 pdf: $(SOURCE_NAME).pdf
22
23 info: $(SOURCE_NAME).info
24
25 lyx: $(SOURCE_NAME).lyx
26
27 rtf: $(SOURCE_NAME).rtf
28
29 $(SOURCE_NAME).txt: $(SOURCE)
30         $(COMMAND)txt $(SOURCE)
31
32 $(SOURCE_NAME).html: $(SOURCE)
33         $(COMMAND)html --split=0 $(SOURCE)
34
35 $(SOURCE_NAME).tex: $(SOURCE)
36         $(COMMAND)latex -o tex $(SOURCE)
37
38 $(SOURCE_NAME).dvi: $(SOURCE)
39         $(COMMAND)latex -o dvi $(SOURCE)
40
41 $(SOURCE_NAME).ps: $(SOURCE)
42         $(COMMAND)latex -o ps $(SOURCE)
43
44 $(SOURCE_NAME).pdf: $(SOURCE)
45         $(COMMAND)latex -o pdf $(SOURCE)
46
47 $(SOURCE_NAME).info: $(SOURCE)
48         $(COMMAND)info $(SOURCE)
49
50 $(SOURCE_NAME).lyx: $(SOURCE)
51         $(COMMAND)lyx $(SOURCE)
52
53 $(SOURCE_NAME).rtf: $(SOURCE)
54         $(COMMAND)rtf $(SOURCE)
55
56 clean:
57         @mv scst_user_spec.txt scst_user_spec.tx
58         rm -f *.txt *.html *.tex *.dvi *.ps *.pdf *.info *.lyx *.rtf
59         @mv scst_user_spec.tx scst_user_spec.txt
60
61 extraclean: clean
62
63 .PHONY: all default html txt pdf tex dvi ps info lyx rtf clean extraclean