Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Docs / Makefile.in
blob2e7d833babab140547c758953d8551b1012546df
2 # Makefile.in for the user and developer documentation
6 # Autoconfig stuff
7 ########################################
9 @SET_MAKE@
11 top_srcdir = @top_srcdir@
12 srcdir = @srcdir@
13 PREFIX = @prefix@
14 DISTDIR = @DISTDIR@
16 DEVDIR = ${DISTDIR}/Developer
17 USRDIR = ${DISTDIR}/User
19 DEVDOCDIR = ${DEVDIR}/Docs
20 USRDOCDIR = ${USRDIR}/Docs
22 build_os = @build_os@
24 INSTALL = @INSTALL@
25 INSTALL_DATA = @INSTALL_DATA@
26 ROBODOC = @ROBODOC@
28 VPATH = @srcdir@
32 # Files
33 ########################################
35 TARGET_DEVDOCS = ahidev.guide ahidev.dvi ahidev.ps ahidev.pdf ahidev.html \
36 ahi.doc ahi.guide ahi.html \
37 ahi_sub.doc ahi_sub.guide ahi_sub.html
38 TARGET_USRDOCS = ahiusr.guide ahiusr.dvi ahiusr.ps ahiusr.pdf ahiusr.html
40 TARGETS = ahidev.readme ahiusr.readme \
41 $(TARGET_DEVDOCS) $(TARGET_USRDOCS)
44 # Targets
45 ########################################
47 .PHONY: all clean distclean maintainer-clean bindist changes
49 all: $(TARGETS)
51 clean:
52 $(RM) $(TARGETS) ahidev.ver ahiusr.ver device.all-c \
53 ahidev.texinfo-exp ahiusr.texinfo-exp tmp-iso.sty\
54 *.cps *.fns *.tps *.vrs *.ky *.pg *.log *.aux *.cp *.fn *.vr *.tp *.toc
56 distclean: clean
57 $(RM) Makefile
59 maintainer-clean: distclean
61 install: all
62 $(INSTALL) -d $(PREFIX)/Help
63 $(INSTALL_DATA) ahiusr.guide $(PREFIX)/Help/ahi.guide
65 bindist: $(TARGETS)
66 $(INSTALL) -d $(USRDOCDIR) $(DEVDOCDIR)
67 $(INSTALL_DATA) ahidev.readme $(DISTDIR)
68 $(INSTALL_DATA) $(srcdir)/ahidev.readme.info $(DISTDIR)
69 $(INSTALL_DATA) ahiusr.readme $(DISTDIR)
70 $(INSTALL_DATA) $(srcdir)/ahiusr.readme.info $(DISTDIR)
71 for i in $(TARGET_DEVDOCS); do \
72 $(INSTALL_DATA) $$i $(DEVDOCDIR); \
73 done
74 for i in $(TARGET_USRDOCS); do \
75 $(INSTALL_DATA) $$i $(USRDOCDIR); \
76 done
78 changes:
79 $(EDITOR) $(srcdir)/readme.changes
82 # Auto-remake autoconf stuff
83 ########################################
85 Makefile: Makefile.in ../config.status
86 (cd .. && ./config.status)
90 # Rules
91 ########################################
93 tmp-iso.sty: iso.sty
94 cp $< $@
96 # readme files
98 ahidev.readme: readme.dev readme.changes readme.main \
99 $(top_srcdir)/version.ver $(top_srcdir)/version.rev
100 ver="`cat $(top_srcdir)/version.ver`.`cat $(top_srcdir)/version.rev`" &&\
101 cat $(srcdir)/readme.dev $(srcdir)/readme.changes $(srcdir)/readme.main | sed -e "s/AHIVERSION/$$ver/" > $@
103 ahiusr.readme: readme.usr readme.changes readme.main $(top_srcdir)/version.rev
104 ver="`cat $(top_srcdir)/version.ver`.`cat $(top_srcdir)/version.rev`" &&\
105 cat $(srcdir)/readme.usr $(srcdir)/readme.changes $(srcdir)/readme.main | sed -e "s/AHIVERSION/$$ver/" > $@
108 # AmigaGuideĀ® files
110 ahidev.guide: ahidev.texinfo ahidev.ver
111 makeinfo --amiga --output ahidev.guide $<
113 ahiusr.guide: ahiusr.texinfo ahiusr.ver
114 makeinfo --amiga --output ahiusr.guide $<
117 # DVI files
119 ahidev.dvi: ahidev.texinfo-exp tmp-iso.sty
120 texi2dvi $<
122 ahiusr.dvi: ahiusr.texinfo-exp tmp-iso.sty
123 texi2dvi $<
126 # PS files
128 ahidev.ps: ahidev.dvi
129 dvips -o $@ $<
131 ahiusr.ps: ahiusr.dvi
132 dvips -o $@ $<
135 # PDF files
137 ahidev.pdf: ahidev.texinfo-exp tmp-iso.sty
138 texi2pdf $<
140 ahiusr.pdf: ahiusr.texinfo-exp tmp-iso.sty
141 texi2pdf $<
144 # HTML files
146 ahidev.html: ahidev.texinfo ahidev.ver
147 texi2html -monolithic -verbose $<
149 ahiusr.html: ahiusr.texinfo ahiusr.ver
150 texi2html -monolithic -verbose $<
153 # Macro-expanded files
155 ahidev.texinfo-exp: ahidev.texinfo ahidev.ver
156 makeinfo -E $@ --output /dev/null $<
158 ahiusr.texinfo-exp: ahiusr.texinfo ahiusr.ver
159 makeinfo -E $@ --output /dev/null $<
162 # Auto-generated version files
164 ahidev.ver: ahidev.texinfo $(top_srcdir)/version.ver $(top_srcdir)/version.rev
165 echo "@set ahiver `cat $(top_srcdir)/version.ver`.`cat $(top_srcdir)/version.rev`" > $@
166 grep '$$Id' $< | sed -e 's/^.*Id: .* \(.*\)\.\(.*\) \(....\)\/\(..\)\/\(..\).*/@set docver \1.\2 (\3-\4-\5)/' >> $@
168 ahiusr.ver: ahiusr.texinfo $(top_srcdir)/version.ver $(top_srcdir)/version.rev
169 echo "@set ahiver `cat $(top_srcdir)/version.ver`.`cat $(top_srcdir)/version.rev`" > $@
170 grep '$$Id' $< | sed -e 's/^.*Id: .* \(.*\)\.\(.*\) \(....\)\/\(..\)\/\(..\).*/@set docver \1.\2 (\3-\4-\5)/' >> $@
173 # Autodocs
175 device.all-c: $(top_srcdir)/Device/*.c
176 @cat $^ > $@
178 ahi.doc: device.all-c
179 $(ROBODOC) $< $@ TOC SORT
181 ahi.guide: device.all-c
182 $(ROBODOC) $< $@ GUIDE SORT
184 ahi.html: device.all-c
185 $(ROBODOC) $< $@ HTML SORT
188 ahi_sub.doc: $(top_srcdir)/Drivers/Paula/paula_audio.a
189 $(ROBODOC) $< $@ TOC SORT
191 ahi_sub.guide: $(top_srcdir)/Drivers/Paula/paula_audio.a
192 $(ROBODOC) $< $@ GUIDE SORT
194 ahi_sub.html: $(top_srcdir)/Drivers/Paula/paula_audio.a
195 $(ROBODOC) $< $@ HTML SORT