14 |
TEXI2PDF=@TEXI2PDF@ |
TEXI2PDF=@TEXI2PDF@ |
15 |
MKINSTALLDIRS = ../mkinstalldirs |
MKINSTALLDIRS = ../mkinstalldirs |
16 |
DVIPS=@DVIPS@ |
DVIPS=@DVIPS@ |
17 |
TEXIFILES = auctex.texi install.texi wininstall.texi intro.texi \ |
PERL=@PERL@ |
18 |
|
AUCTEXTEXIFILES = auctex.texi install.texi wininstall.texi intro.texi \ |
19 |
changes.texi todo.texi faq.texi macros.texi quickstart.texi |
changes.texi todo.texi faq.texi macros.texi quickstart.texi |
20 |
|
PREVIEWTEXIFILES = copying.texi preview-faq.texi macros.texi \ |
21 |
|
preview-dtxdoc.texi preview-latex.texi preview-problems.texi \ |
22 |
|
preview-readme.texi preview-todo.texi |
23 |
DISTTEXTS = ../README ../INSTALL ../TODO ../INSTALL.windows ../FAQ ../CHANGES |
DISTTEXTS = ../README ../INSTALL ../TODO ../INSTALL.windows ../FAQ ../CHANGES |
24 |
|
|
25 |
all: auctex.dvi tex-ref.dvi auctex.info |
all: auctex preview |
26 |
|
|
27 |
|
install: install-auctex install-preview |
28 |
|
|
29 |
dist: auctex.info $(DISTTEXTS) \ |
dist: auctex.info $(DISTTEXTS) \ |
30 |
html/auctex_toc.html auctex.ps auctex.pdf tex-ref.ps tex-ref.pdf |
html/auctex_toc.html auctex.ps auctex.pdf tex-ref.ps tex-ref.pdf |
31 |
|
|
32 |
.PHONY: all dist install disttexts clean distclean maintainer-clean |
.PHONY: all auctex preview dist install-auctex disttexts clean distclean \ |
33 |
|
maintainer-clean install-preview html-docs |
34 |
|
|
35 |
|
# AUCTeX |
36 |
|
|
37 |
|
auctex: auctex.dvi tex-ref.dvi auctex.info |
38 |
|
|
39 |
html/auctex_toc.html: auctex.texi |
html/auctex_toc.html: auctex.texi |
40 |
rm -rf html |
rm -rf html |
51 |
tex-ref.pdf: tex-ref.tex |
tex-ref.pdf: tex-ref.tex |
52 |
$(PDFTEX) tex-ref.tex |
$(PDFTEX) tex-ref.tex |
53 |
|
|
54 |
auctex.dvi: $(TEXIFILES) |
auctex.dvi: $(AUCTEXTEXIFILES) |
55 |
$(TEXI2DVI) auctex.texi |
$(TEXI2DVI) auctex.texi |
56 |
|
|
57 |
auctex.pdf: $(TEXIFILES) |
auctex.pdf: $(AUCTEXTEXIFILES) |
58 |
$(TEXI2PDF) auctex.texi |
$(TEXI2PDF) auctex.texi |
59 |
|
|
60 |
auctex.ps: auctex.dvi |
auctex.ps: auctex.dvi |
61 |
$(DVIPS) auctex.dvi -Ppdf -o auctex.ps |
$(DVIPS) auctex.dvi -Ppdf -o auctex.ps |
62 |
|
|
63 |
auctex.info: $(TEXIFILES) |
auctex.info: $(AUCTEXTEXIFILES) |
64 |
$(MAKEINFO) auctex.texi |
$(MAKEINFO) auctex.texi |
65 |
|
|
66 |
|
install-auctex: auctex.info |
67 |
|
-$(MKINSTALLDIRS) $(DESTDIR)$(infodir) |
68 |
|
rm -f $(DESTDIR)$(infodir)/auctex $(DESTDIR)$(infodir)/auctex-* |
69 |
|
$(INSTALL_DATA) auctex.info $(DESTDIR)$(infodir) |
70 |
|
for x in auctex.info-*; do \ |
71 |
|
if [ -r $$x ]; then \ |
72 |
|
$(INSTALL_DATA) $$x $(DESTDIR)$(infodir) ; \ |
73 |
|
fi; \ |
74 |
|
done |
75 |
|
-$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) auctex.info |
76 |
|
|
77 |
|
# preview |
78 |
|
|
79 |
|
preview: preview-latex.dvi preview-latex.info |
80 |
|
|
81 |
|
preview-latex/index.html: $(PREVIEWTEXIFILES) |
82 |
|
rm -f preview-latex/* |
83 |
|
$(TEXI2HTML) preview-latex.texi |
84 |
|
|
85 |
|
html-docs: preview-latex/index.html |
86 |
|
|
87 |
|
preview-dtxdoc.texi: ../preview/latex/preview.dtx preview-dtxdoc.pl |
88 |
|
-$(PERL) preview-dtxdoc.pl ../preview/latex/preview.dtx \ |
89 |
|
preview-dtxdoc.texi |
90 |
|
|
91 |
|
preview-latex.dvi: $(PREVIEWTEXIFILES) |
92 |
|
$(TEXI2DVI) preview-latex.texi |
93 |
|
|
94 |
|
preview-latex.ps: preview-latex.dvi |
95 |
|
$(DVIPS) preview-latex.dvi -Ppdf -o preview-latex.ps |
96 |
|
|
97 |
|
preview-latex.pdf: $(PREVIEWTEXIFILES) |
98 |
|
$(TEXI2PDF) preview-latex.texi |
99 |
|
|
100 |
|
preview-latex.info: $(PREVIEWTEXIFILES) |
101 |
|
$(MAKEINFO) preview-latex.texi |
102 |
|
|
103 |
|
install-preview: preview-latex.info |
104 |
|
-$(MKINSTALLDIRS) $(DESTDIR)$(infodir) |
105 |
|
for x in preview-latex.info* ; do \ |
106 |
|
$(INSTALL_DATA) $$x $(DESTDIR)$(infodir) ; \ |
107 |
|
done |
108 |
|
-$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) preview-latex.info |
109 |
|
|
110 |
|
# disttexts |
111 |
|
|
112 |
../INSTALL: install.texi macros.texi |
../INSTALL: install.texi macros.texi |
113 |
$(MAKEINFO) -D rawfile --no-headers \ |
$(MAKEINFO) -D rawfile --no-headers \ |
114 |
install.texi --output $@ |
install.texi --output $@ |
117 |
$(MAKEINFO) -D rawfile --no-headers \ |
$(MAKEINFO) -D rawfile --no-headers \ |
118 |
wininstall.texi --output $@ |
wininstall.texi --output $@ |
119 |
|
|
120 |
../README: intro.texi macros.texi |
../README: intro.texi preview-readme.texi macros.texi |
121 |
$(MAKEINFO) -D rawfile --no-headers \ |
$(MAKEINFO) -D rawfile --no-headers \ |
122 |
intro.texi --output $@ |
intro.texi --output $@ |
123 |
|
$(MAKEINFO) -D rawfile --no-headers \ |
124 |
|
preview-readme.texi --output - >> $@ |
125 |
|
|
126 |
../CHANGES: changes.texi macros.texi |
../CHANGES: changes.texi macros.texi |
127 |
$(MAKEINFO) -D rawfile --no-headers \ |
$(MAKEINFO) -D rawfile --no-headers \ |
128 |
changes.texi --output $@ |
changes.texi --output $@ |
129 |
|
|
130 |
../TODO: todo.texi macros.texi |
../TODO: todo.texi preview-todo.texi macros.texi |
131 |
$(MAKEINFO) -D rawfile --no-headers \ |
$(MAKEINFO) -D rawfile --no-headers \ |
132 |
todo.texi --output $@ |
todo.texi --output $@ |
133 |
|
$(MAKEINFO) -D rawfile --no-headers \ |
134 |
|
preview-todo.texi --output - >> $@ |
135 |
|
|
136 |
../FAQ: faq.texi macros.texi |
../FAQ: faq.texi preview-faq.texi macros.texi |
137 |
$(MAKEINFO) -D rawfile --no-headers \ |
$(MAKEINFO) -D rawfile --no-headers \ |
138 |
faq.texi --output $@ |
faq.texi --output $@ |
139 |
|
$(MAKEINFO) -D rawfile --no-headers \ |
140 |
|
--number-sections preview-faq.texi --output - >> $@ |
141 |
|
|
142 |
|
../PROBLEMS: preview-problems.texi macros.texi |
143 |
|
$(MAKEINFO) -D rawfile --no-headers \ |
144 |
|
--number-sections preview-problems.texi --output $@ |
145 |
|
|
146 |
disttexts: $(DISTTEXTS) |
disttexts: $(DISTTEXTS) |
147 |
|
|
148 |
install: auctex.info |
# clean |
|
-$(MKINSTALLDIRS) $(DESTDIR)$(infodir) |
|
|
rm -f $(DESTDIR)$(infodir)/auctex $(DESTDIR)$(infodir)/auctex-* |
|
|
$(INSTALL_DATA) auctex.info $(DESTDIR)$(infodir) |
|
|
for x in auctex.info-*; do \ |
|
|
if [ -r $$x ]; then \ |
|
|
$(INSTALL_DATA) $$x $(DESTDIR)$(infodir) ; \ |
|
|
fi; \ |
|
|
done |
|
|
-$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) auctex.info |
|
149 |
|
|
150 |
clean: |
clean: |
151 |
rm -f *.dvi *.ps *.pdf *.aux *.cp *.fn *.info *.ky *.log *~ \#*\# \ |
rm -f *.dvi *.ps *.pdf *.aux *.cp *.fn *.ky *.log *~ \#*\# \ |
152 |
*.tp *.vr *.pg *.toc *.tp *.bak *.cps *.kys *.tps \ |
*.tp *.vr *.pg *.toc *.tp *.bak *.cps *.kys *.tps \ |
153 |
*.fns *.vrs *.pgs *.tmp auctex.info auctex.info-* *.html \ |
*.fns *.vrs *.pgs *.tmp *.info *.info-* *.html \ |
154 |
|
preview-latex/* |
155 |
rm -rf html |
rm -rf html |
156 |
|
|
157 |
distclean: clean |
distclean: clean |
158 |
rm -f Makefile |
rm -f Makefile |
159 |
|
|
160 |
maintainer-clean: distclean |
maintainer-clean: distclean |
161 |
rm -rf ../INSTALL INSTALL.windows README CHANGES HISTORY TODO FAQ |
rm -f INSTALL.windows README CHANGES HISTORY TODO FAQ \ |
162 |
|
preview-dtxdoc.texi auto.texi $(DISTTEXTS) |