2 # Makefile.in for the user and developer documentation
7 ########################################
11 top_srcdir
= @top_srcdir@
16 DEVDIR
= ${DISTDIR}/Developer
17 USRDIR
= ${DISTDIR}/User
19 DEVDOCDIR
= ${DEVDIR}/Docs
20 USRDOCDIR
= ${USRDIR}/Docs
25 INSTALL_DATA
= @INSTALL_DATA@
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
)
45 ########################################
47 .PHONY
: all clean distclean maintainer-clean bindist changes
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
59 maintainer-clean
: distclean
62 $(INSTALL
) -d
$(PREFIX
)/Help
63 $(INSTALL_DATA
) ahiusr.guide
$(PREFIX
)/Help
/ahi.guide
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
); \
74 for i in
$(TARGET_USRDOCS
); do \
75 $(INSTALL_DATA
) $$i $(USRDOCDIR
); \
79 $(EDITOR
) $(srcdir)/readme.changes
82 # Auto-remake autoconf stuff
83 ########################################
85 Makefile
: Makefile.in ..
/config.status
86 (cd ..
&& .
/config.status
)
91 ########################################
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/" > $@
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
$<
119 ahidev.
dvi: ahidev.texinfo-exp tmp-iso.sty
122 ahiusr.
dvi: ahiusr.texinfo-exp tmp-iso.sty
128 ahidev.ps
: ahidev.
dvi
131 ahiusr.ps
: ahiusr.
dvi
137 ahidev.pdf
: ahidev.texinfo-exp tmp-iso.sty
140 ahiusr.pdf
: ahiusr.texinfo-exp tmp-iso.sty
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)/' >> $@
175 device.all-c
: $(top_srcdir
)/Device
/*.c
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