OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [Documentation/] [DocBook/] [Makefile] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
BOOKS   := wanbook.sgml z8530book.sgml mcabook.sgml videobook.sgml \
2
           kernel-api.sgml parportbook.sgml kernel-hacking.sgml \
3
           kernel-locking.sgml via-audio.sgml mousedrivers.sgml sis900.sgml \
4
           deviceiobook.sgml procfs-guide.sgml tulip-user.sgml \
5
           journal-api.sgml
6
 
7
PS      :=      $(patsubst %.sgml, %.ps, $(BOOKS))
8
PDF     :=      $(patsubst %.sgml, %.pdf, $(BOOKS))
9
HTML    :=      $(patsubst %.sgml, %, $(BOOKS))
10
IMG-parportbook := parport-share.fig parport-multi.fig parport-structure.fig
11
EPS-parportbook := $(patsubst %.fig, %.eps, $(IMG-parportbook))
12
PNG-parportbook := $(patsubst %.fig, %.png, $(IMG-parportbook))
13
C-procfs-example = procfs_example.sgml
14
 
15
books:  $(BOOKS)
16
 
17
$(BOOKS): $(TOPDIR)/scripts/docproc
18
 
19
.PHONY: books ps pdf html clean mrproper
20
 
21
ps:     $(PS)
22
 
23
pdf:    $(PDF)
24
 
25
html:   $(HTML)
26
 
27
man:    kernel-api-man
28
 
29
%.eps: %.fig
30
        fig2dev -Leps $< $@
31
 
32
%.png: %.fig
33
        fig2dev -Lpng $< $@
34
 
35
%.sgml: %.c
36
        echo "" > $@
37
        expand --tabs=8 < $< | \
38
        sed -e "s/&/\\&/g" \
39
            -e "s/
40
            -e "s/>/\\>/g" >> $@
41
        echo "" >> $@
42
 
43
 
44
$(TOPDIR)/scripts/docproc:
45
        $(MAKE) -C $(TOPDIR)/scripts docproc
46
 
47
mousedrivers.sgml: mousedrivers.tmpl
48
        $(TOPDIR)/scripts/docgen <$< >$@
49
 
50
kernel-hacking.sgml: kernel-hacking.tmpl
51
        $(TOPDIR)/scripts/docgen <$< >$@
52
 
53
kernel-locking.sgml: kernel-locking.tmpl
54
        $(TOPDIR)/scripts/docgen <$< >$@
55
 
56
wanbook.sgml: wanbook.tmpl $(TOPDIR)/drivers/net/wan/syncppp.c
57
        $(TOPDIR)/scripts/docgen $(TOPDIR)/drivers/net/wan/syncppp.c \
58
                wanbook.sgml
59
 
60
z8530book.sgml: z8530book.tmpl $(TOPDIR)/drivers/net/wan/z85230.c
61
        $(TOPDIR)/scripts/docgen $(TOPDIR)/drivers/net/wan/z85230.c \
62
                z8530book.sgml
63
 
64
via-audio.sgml: via-audio.tmpl $(TOPDIR)/drivers/sound/via82cxxx_audio.c
65
        $(TOPDIR)/scripts/docgen $(TOPDIR)/drivers/sound/via82cxxx_audio.c \
66
                via-audio.sgml
67
 
68
tulip-user.sgml: tulip-user.tmpl
69
        $(TOPDIR)/scripts/docgen <$< >$@
70
 
71
sis900.sgml: sis900.tmpl $(TOPDIR)/drivers/net/sis900.c
72
        $(TOPDIR)/scripts/docgen $(TOPDIR)/drivers/net/sis900.c \
73
                sis900.sgml
74
 
75
deviceiobook.sgml: deviceiobook.tmpl
76
        $(TOPDIR)/scripts/docgen deviceiobook.sgml
77
 
78
mcabook.sgml: mcabook.tmpl $(TOPDIR)/arch/i386/kernel/mca.c
79
        $(TOPDIR)/scripts/docgen $(TOPDIR)/arch/i386/kernel/mca.c \
80
                mcabook.sgml
81
 
82
videobook.sgml: videobook.tmpl $(TOPDIR)/drivers/media/video/videodev.c
83
        $(TOPDIR)/scripts/docgen $(TOPDIR)/drivers/media/video/videodev.c \
84
                videobook.sgml
85
 
86
procfs-guide.sgml:  procfs-guide.tmpl procfs_example.sgml
87
        $(TOPDIR)/scripts/docgen < procfs-guide.tmpl >$@
88
 
89
APISOURCES :=   $(TOPDIR)/drivers/media/video/videodev.c \
90
                $(TOPDIR)/arch/i386/kernel/irq.c \
91
                $(TOPDIR)/arch/i386/kernel/mca.c \
92
                $(TOPDIR)/arch/i386/kernel/mtrr.c \
93
                $(TOPDIR)/drivers/char/misc.c \
94
                $(TOPDIR)/kernel/printk.c \
95
                $(TOPDIR)/drivers/net/net_init.c \
96
                $(TOPDIR)/drivers/net/8390.c \
97
                $(TOPDIR)/drivers/char/serial.c \
98
                $(TOPDIR)/drivers/pci/pci.c \
99
                $(TOPDIR)/drivers/hotplug/pci_hotplug_core.c \
100
                $(TOPDIR)/drivers/hotplug/pci_hotplug_util.c \
101
                $(TOPDIR)/drivers/block/ll_rw_blk.c \
102
                $(TOPDIR)/drivers/sound/sound_core.c \
103
                $(TOPDIR)/drivers/sound/sound_firmware.c \
104
                $(TOPDIR)/drivers/net/wan/syncppp.c \
105
                $(TOPDIR)/drivers/net/wan/z85230.c \
106
                $(TOPDIR)/drivers/usb/usb.c \
107
                $(TOPDIR)/drivers/video/fbmem.c \
108
                $(TOPDIR)/drivers/video/fbcmap.c \
109
                $(TOPDIR)/drivers/video/fbcon.c \
110
                $(TOPDIR)/drivers/video/fbgen.c \
111
                $(TOPDIR)/drivers/video/fonts.c \
112
                $(TOPDIR)/drivers/video/macmodes.c \
113
                $(TOPDIR)/drivers/video/modedb.c \
114
                $(TOPDIR)/fs/devfs/base.c \
115
                $(TOPDIR)/fs/locks.c \
116
                $(TOPDIR)/include/asm-i386/bitops.h \
117
                $(TOPDIR)/kernel/pm.c \
118
                $(TOPDIR)/kernel/ksyms.c \
119
                $(TOPDIR)/kernel/kmod.c \
120
                $(TOPDIR)/kernel/module.c \
121
                $(TOPDIR)/kernel/printk.c \
122
                $(TOPDIR)/kernel/sched.c \
123
                $(TOPDIR)/kernel/sysctl.c \
124
                $(TOPDIR)/lib/string.c \
125
                $(TOPDIR)/lib/vsprintf.c \
126
                $(TOPDIR)/net/netsyms.c
127
 
128
kernel-api.sgml: kernel-api.tmpl $(APISOURCES)
129
        $(TOPDIR)/scripts/docgen $(APISOURCES) \
130
                kernel-api.sgml
131
 
132
kernel-api-man: $(APISOURCES)
133
        @rm -rf $(TOPDIR)/Documentation/man
134
        $(TOPDIR)/scripts/kernel-doc -man $^ | \
135
                $(PERL) $(TOPDIR)/scripts/split-man $(TOPDIR)/Documentation/man
136
 
137
parportbook parportbook.pdf: $(PNG-parportbook)
138
parportbook.ps: $(EPS-parportbook)
139
parportbook.sgml: parportbook.tmpl $(TOPDIR)/drivers/parport/init.c
140
        $(TOPDIR)/scripts/docgen $(TOPDIR)/drivers/parport/init.c <$< >$@
141
 
142
 
143
JBDSOURCES :=  $(TOPDIR)/include/linux/jbd.h \
144
               $(TOPDIR)/fs/jbd/journal.c \
145
               $(TOPDIR)/fs/jbd/recovery.c \
146
               $(TOPDIR)/fs/jbd/transaction.c
147
 
148
journal-api.sgml: journal-api.tmpl $(JBDSOURCES)
149
        $(TOPDIR)/scripts/docgen   $(JBDSOURCES) \
150
                journal-api.sgml
151
 
152
 
153
DVI     :=      $(patsubst %.sgml, %.dvi, $(BOOKS))
154
AUX     :=      $(patsubst %.sgml, %.aux, $(BOOKS))
155
TEX     :=      $(patsubst %.sgml, %.tex, $(BOOKS))
156
LOG     :=      $(patsubst %.sgml, %.log, $(BOOKS))
157
OUT     :=      $(patsubst %.sgml, %.out, $(BOOKS))
158
 
159
clean:
160
        rm -f core *~
161
        rm -f $(BOOKS)
162
        rm -f $(DVI) $(AUX) $(TEX) $(LOG) $(OUT)
163
        rm -f $(PNG-parportbook) $(EPS-parportbook)
164
        rm -f $(C-procfs-example)
165
 
166
mrproper: clean
167
        rm -f $(PS) $(PDF)
168
        rm -f -r $(HTML)
169
        rm -f .depend
170
        rm -f $(TOPDIR)/scripts/mkdep-docbook
171
        rm -rf DBTOHTML_OUTPUT*
172
 
173
%.ps : %.sgml
174
        @(which db2ps > /dev/null 2>&1) || \
175
         (echo "*** You need to install DocBook stylesheets ***"; \
176
          exit 1)
177
        db2ps $<
178
 
179
%.pdf : %.sgml
180
        @(which db2pdf > /dev/null 2>&1) || \
181
         (echo "*** You need to install DocBook stylesheets ***"; \
182
          exit 1)
183
        db2pdf $<
184
 
185
%:      %.sgml
186
        @(which db2html > /dev/null 2>&1) || \
187
         (echo "*** You need to install DocBook stylesheets ***"; \
188
          exit 1)
189
        rm -rf $@
190
        db2html $<
191
        if [ ! -z "$(PNG-$@)" ]; then cp $(PNG-$@) $@; fi
192
 
193
#
194
# we could have our own dependency generator
195
#
196
#
197
# .depend: $(TOPDIR)/scripts/mkdep-docbook
198
#       $(TOPDIR)/scripts/mkdep-docbook $(wildcard *.tmpl) > .depend
199
 
200
include $(TOPDIR)/Rules.make
201
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.