100
|
1 # Makefile - for the AUC TeX distribution.
|
|
2 #
|
|
3 # Maintainer: Per Abrahamsen <auc-tex@sunsite.auc.dk>
|
108
|
4 # Version: 9.7l
|
100
|
5 #
|
|
6 # Edit the makefile, type `make', and follow the instructions.
|
|
7
|
|
8 ##----------------------------------------------------------------------
|
|
9 ## YOU MUST EDIT THE FOLLOWING LINES
|
|
10 ##----------------------------------------------------------------------
|
|
11
|
|
12 # Where local software is found
|
|
13 prefix=/usr/local
|
|
14
|
|
15 # Where info files go.
|
|
16 infodir = $(prefix)/info
|
|
17
|
|
18 # Where local lisp files go.
|
|
19 lispdir = $(prefix)/share/emacs/site-lisp
|
|
20
|
|
21 # Where the AUC TeX emacs lisp files go.
|
|
22 aucdir=$(lispdir)/auctex
|
|
23
|
|
24 # Name of your emacs binary
|
|
25 EMACS=emacs
|
|
26
|
|
27 ##----------------------------------------------------------------------
|
|
28 ## YOU MAY NEED TO EDIT THESE
|
|
29 ##----------------------------------------------------------------------
|
|
30
|
|
31 # Do not change the definition of autodir below, unless you also
|
|
32 # update TeX-auto-global in tex-init.el
|
|
33
|
|
34 # Where the automatically generated lisp files for your site go.
|
|
35 autodir=$(aucdir)/auto
|
|
36
|
|
37 # Using emacs in batch mode.
|
|
38 BATCH=$(EMACS) -batch -q -l lpath.el
|
|
39
|
|
40 # Specify the byte-compiler for compiling AUC TeX files
|
|
41 ELC= $(BATCH) -f batch-byte-compile
|
|
42
|
|
43 # Specify the byte-compiler for generating style files
|
|
44 AUTO= $(EMACS) -batch -l $(aucdir)/tex.elc \
|
|
45 -l $(aucdir)/latex.elc -f TeX-auto-generate-global
|
|
46
|
|
47 # Specify the byte-compiler for compiling generated style files
|
|
48 AUTOC= $(ELC)
|
|
49
|
|
50 # How to move the byte compiled files to their destination.
|
|
51 MV = mv
|
|
52
|
|
53 # How to copy the lisp files to their distination.
|
|
54 CP = cp -p
|
|
55
|
|
56 ##----------------------------------------------------------------------
|
|
57 ## BELOW THIS LINE ON YOUR OWN RISK!
|
|
58 ##----------------------------------------------------------------------
|
|
59
|
108
|
60 .SUFFIXES: .el .elc .texi
|
|
61
|
100
|
62 SHELL = /bin/sh
|
|
63
|
|
64 FTPDIR = /home/ftp/pub/Staff/Per.Abrahamsen/auctex
|
|
65 #FTPDIR = /home/ftp/pub/Staff/Per.Abrahamsen/mirror/ftp/auctex
|
|
66
|
|
67 WWWDIR = $(HOME)/.public_html/auctex
|
|
68 #WWWDIR = /home/ftp/pub/Staff/Per.Abrahamsen/mirror/www/auctex
|
|
69
|
|
70 REMOVE = ltx-help.el
|
|
71
|
|
72 MINMAPSRC = auc-menu.el maniac.el outln-18.el all.el multi-prompt.el
|
|
73
|
|
74 CONTRIB = bib-cite.el tex-jp.el font-latex.el
|
|
75 CONTRIBELC = bib-cite.elc font-latex.elc
|
|
76
|
|
77 AUCSRC = auc-old.el tex.el tex-buf.el latex.el tex-info.el multi-prompt.el
|
|
78 AUCELC = auc-old.elc tex.elc tex-buf.elc latex.elc tex-info.elc \
|
|
79 multi-prompt.elc
|
|
80
|
|
81
|
|
82 STYLESRC = style/slides.el style/foils.el style/amstex.el \
|
|
83 style/article.el style/book.el style/letter.el \
|
|
84 style/report.el style/amsart.el style/amsbook.el \
|
|
85 style/epsf.el style/psfig.el style/latexinfo.el \
|
|
86 style/dutch.el style/german.el style/dk.el \
|
|
87 style/j-article.el style/j-book.el style/j-report.el \
|
|
88 style/jarticle.el style/jbook.el style/jreport.el \
|
|
89 style/dinbrief.el style/virtex.el style/plfonts.el \
|
|
90 style/plhb.el style/harvard.el style/swedish.el
|
|
91
|
|
92 DOCFILES = doc/Makefile doc/auc-tex.texi doc/intro.texi doc/install.texi \
|
|
93 doc/changes.texi doc/tex-ref.tex doc/math-ref.tex doc/history.texi
|
|
94
|
|
95 EXTRAFILES = COPYING PROBLEMS MSDOS VMS OS2 WIN-NT Makefile ChangeLog \
|
|
96 lpath.el tex-site.el $(CONTRIB)
|
|
97
|
|
98 all: lisp
|
|
99
|
|
100 lisp:
|
|
101 $(ELC) $(AUCSRC) $(STYLESRC) $(CONTRIB)
|
|
102
|
108
|
103 some: $(AUCELC) $(STYLESRC:.el=.elc)
|
100
|
104
|
102
|
105 install: install-lisp
|
100
|
106
|
|
107 contrib:
|
|
108 $(ELC) bib-cite.el
|
|
109 $(ELC) font-latex.el
|
|
110 # $(ELC) tex-jp.el # Doesn't compile without MULE
|
|
111 # $(ELC) hilit-LaTeX.el # Doesn't compile without X
|
|
112
|
102
|
113 install-lisp: some
|
100
|
114 if [ ! -d $(lispdir) ]; then mkdir $(lispdir); else true; fi ;
|
|
115 if [ -f $(lispdir)/tex-site.el ]; \
|
|
116 then \
|
|
117 echo "Leaving old tex-site.el alone."; \
|
|
118 else \
|
|
119 sed -e 's#@AUCDIR#$(aucdir)/#' tex-site.el \
|
|
120 > $(lispdir)/tex-site.el ; \
|
|
121 fi
|
|
122 if [ ! -d $(aucdir) ]; then mkdir $(aucdir); else true; fi ;
|
|
123 if [ `/bin/pwd` != `(cd $(aucdir) && /bin/pwd)` ] ; \
|
|
124 then \
|
|
125 if [ ! -d $(aucdir)/style ]; then mkdir $(aucdir)/style; \
|
|
126 else true; fi ; \
|
|
127 $(MV) $(AUCELC) $(aucdir) ; \
|
|
128 $(MV) style/*.elc $(aucdir)/style ; \
|
|
129 $(CP) $(AUCSRC) $(aucdir) ; \
|
|
130 $(CP) style/*.el $(aucdir)/style ; \
|
|
131 else \
|
|
132 echo "Leaving compiled files in place."; \
|
|
133 fi
|
|
134
|
|
135 install-contrib:
|
|
136 $(MV) $(CONTRIBELC) $(aucdir)
|
|
137 $(MV) bib-cite.elc $(aucdir)
|
|
138 $(MV) font-latex.elc $(aucdir)
|
|
139 $(CP) $(CONTRIB) $(aucdir)
|
|
140
|
|
141 install-info:
|
|
142 -(cd doc; $(MAKE) install infodir=$(infodir))
|
|
143
|
|
144
|
|
145 install-auto:
|
|
146 @echo "Use \"M-x TeX-auto-generate-global RET\" instead."
|
|
147
|
|
148
|
|
149 .el.elc:
|
|
150 $(ELC) $<
|
|
151
|
|
152 clean:
|
|
153 rm -rf *~ #*# lex.yy.c idetex auctex
|
|
154 (cd doc; $(MAKE) clean)
|
|
155
|
|
156 wc:
|
|
157 wc $(AUCSRC) $(STYLESRC)
|
|
158
|
|
159 dist:
|
|
160 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
|
|
161 if [ "X$(OLD)" = "X" ]; then echo "No patch"; exit 1; fi
|
|
162 @echo "**********************************************************"
|
|
163 @echo "** Making distribution of auctex for release $(TAG)"
|
|
164 @echo "**********************************************************"
|
|
165 if [ -d auctex-$(TAG) ]; then rm -r auctex-$(TAG) ; fi
|
|
166 rm -f $(WWWDIR)/version
|
|
167 echo $(TAG) > $(WWWDIR)/version
|
|
168 perl -pi.bak -e "s/Version: $(OLD)/Version: $(TAG)/" \
|
|
169 $(AUCSRC) $(EXTRAFILES)
|
|
170 mv ChangeLog ChangeLog.old
|
|
171 echo `date "+%a %b %d %T %Y "` \
|
|
172 " Per Abrahamsen <abraham@dina.kvl.dk>" > ChangeLog
|
|
173 echo >> ChangeLog
|
|
174 echo " * Version" $(TAG) released. >> ChangeLog
|
|
175 echo >> ChangeLog
|
|
176 cat ChangeLog.old >> ChangeLog
|
|
177 cvs commit -m "Release $(OLD)++" tex.el
|
|
178 rm -f tex.el.orig
|
|
179 mv tex.el tex.el.orig
|
|
180 sed -e '/defconst AUC-TeX-date/s/"[^"]*"/"'"`date`"'"/' \
|
|
181 -e '/defconst AUC-TeX-version/s/"[^"]*"/"'$(TAG)'"/' \
|
|
182 < tex.el.orig > tex.el
|
|
183 rm -f $(REMOVE)
|
|
184 -cvs remove $(REMOVE)
|
|
185 -cvs add $(AUCSRC) $(EXTRAFILES)
|
|
186 -(cd doc; cvs add `echo $(DOCFILES) | sed -e s@doc/@@g` )
|
|
187 -(cd style; cvs add `echo $(STYLESRC) | sed -e s@style/@@g` )
|
|
188 cvs commit -m "Release $(TAG)"
|
|
189 cvs tag release_`echo $(TAG) | sed -e 's/[.]/_/g'`
|
|
190 mkdir auctex-$(TAG)
|
|
191 mkdir auctex-$(TAG)/style
|
|
192 mkdir auctex-$(TAG)/doc
|
|
193 cp $(AUCSRC) $(EXTRAFILES) auctex-$(TAG)
|
|
194 cp $(STYLESRC) auctex-$(TAG)/style
|
|
195 cp $(DOCFILES) auctex-$(TAG)/doc
|
|
196 (cd doc; $(MAKE) dist; cp auctex auctex-* ../auctex-$(TAG)/doc )
|
|
197 (cd doc; cp INSTALLATION README CHANGES ../auctex-$(TAG)/ )
|
|
198 cp doc/CHANGES $(FTPDIR)/CHANGES-$(TAG)
|
|
199 cp doc/auc-tex.ps $(FTPDIR)
|
|
200 cp ChangeLog $(FTPDIR)
|
|
201 cp doc/*.html $(WWWDIR)/doc
|
|
202 rm -f $(FTPDIR)/auctex-$(TAG).tar.gz $(FTPDIR)/auctex.tar.gz
|
|
203 rm -f $(FTPDIR)/auctex.tar.Z $(FTPDIR)/auctex.zip
|
|
204 tar -cf - auctex-$(TAG) | gzip --best > $(FTPDIR)/auctex-$(TAG).tar.gz
|
|
205 tar -cf - auctex-$(TAG) | compress > $(FTPDIR)/auctex.tar.Z
|
|
206 zip -r $(FTPDIR)/auctex auctex-$(TAG)
|
|
207 (cd $(FTPDIR); ln -s auctex-$(TAG).tar.gz auctex.tar.gz)
|
|
208 cvs rdiff -r release_`echo $(OLD) | sed -e 's/[.]/_/g'` \
|
|
209 -r release_`echo $(TAG) | sed -e 's/[.]/_/g'` auctex \
|
|
210 > $(FTPDIR)/auctex-$(OLD)-to-$(TAG).patch ; exit 0
|
|
211
|
|
212 patch:
|
|
213 cvs rdiff -r release_`echo $(OLD) | sed -e 's/[.]/_/g'` \
|
|
214 -r release_`echo $(TAG) | sed -e 's/[.]/_/g'` auctex
|
|
215
|
|
216 min-map:
|
|
217 -cvs add $(MINMAPSRC)
|
|
218 cvs commit -m "Update"
|
|
219 cp $(MINMAPSRC) doc/math-ref.tex $(FTPDIR)
|