100
|
1 # Makefile - for the AUC TeX distribution.
|
|
2 #
|
|
3 # Maintainer: Per Abrahamsen <auc-tex@sunsite.auc.dk>
|
102
|
4 # Version: 9.7k
|
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
|
|
60 SHELL = /bin/sh
|
|
61
|
|
62 FTPDIR = /home/ftp/pub/Staff/Per.Abrahamsen/auctex
|
|
63 #FTPDIR = /home/ftp/pub/Staff/Per.Abrahamsen/mirror/ftp/auctex
|
|
64
|
|
65 WWWDIR = $(HOME)/.public_html/auctex
|
|
66 #WWWDIR = /home/ftp/pub/Staff/Per.Abrahamsen/mirror/www/auctex
|
|
67
|
|
68 REMOVE = ltx-help.el
|
|
69
|
|
70 MINMAPSRC = auc-menu.el maniac.el outln-18.el all.el multi-prompt.el
|
|
71
|
|
72 CONTRIB = bib-cite.el tex-jp.el font-latex.el
|
|
73 CONTRIBELC = bib-cite.elc font-latex.elc
|
|
74
|
|
75 AUCSRC = auc-old.el tex.el tex-buf.el latex.el tex-info.el multi-prompt.el
|
|
76 AUCELC = auc-old.elc tex.elc tex-buf.elc latex.elc tex-info.elc \
|
|
77 multi-prompt.elc
|
|
78
|
|
79
|
|
80 STYLESRC = style/slides.el style/foils.el style/amstex.el \
|
|
81 style/article.el style/book.el style/letter.el \
|
|
82 style/report.el style/amsart.el style/amsbook.el \
|
|
83 style/epsf.el style/psfig.el style/latexinfo.el \
|
|
84 style/dutch.el style/german.el style/dk.el \
|
|
85 style/j-article.el style/j-book.el style/j-report.el \
|
|
86 style/jarticle.el style/jbook.el style/jreport.el \
|
|
87 style/dinbrief.el style/virtex.el style/plfonts.el \
|
|
88 style/plhb.el style/harvard.el style/swedish.el
|
|
89
|
|
90 DOCFILES = doc/Makefile doc/auc-tex.texi doc/intro.texi doc/install.texi \
|
|
91 doc/changes.texi doc/tex-ref.tex doc/math-ref.tex doc/history.texi
|
|
92
|
|
93 EXTRAFILES = COPYING PROBLEMS MSDOS VMS OS2 WIN-NT Makefile ChangeLog \
|
|
94 lpath.el tex-site.el $(CONTRIB)
|
|
95
|
|
96 all: lisp
|
|
97
|
|
98 lisp:
|
|
99 $(ELC) $(AUCSRC) $(STYLESRC) $(CONTRIB)
|
|
100
|
102
|
101 some: $(AUCELC) style/*.elc
|
100
|
102
|
102
|
103 install: install-lisp
|
100
|
104
|
|
105 contrib:
|
|
106 $(ELC) bib-cite.el
|
|
107 $(ELC) font-latex.el
|
|
108 # $(ELC) tex-jp.el # Doesn't compile without MULE
|
|
109 # $(ELC) hilit-LaTeX.el # Doesn't compile without X
|
|
110
|
102
|
111 install-lisp: some
|
100
|
112 if [ ! -d $(lispdir) ]; then mkdir $(lispdir); else true; fi ;
|
|
113 if [ -f $(lispdir)/tex-site.el ]; \
|
|
114 then \
|
|
115 echo "Leaving old tex-site.el alone."; \
|
|
116 else \
|
|
117 sed -e 's#@AUCDIR#$(aucdir)/#' tex-site.el \
|
|
118 > $(lispdir)/tex-site.el ; \
|
|
119 fi
|
|
120 if [ ! -d $(aucdir) ]; then mkdir $(aucdir); else true; fi ;
|
|
121 if [ `/bin/pwd` != `(cd $(aucdir) && /bin/pwd)` ] ; \
|
|
122 then \
|
|
123 if [ ! -d $(aucdir)/style ]; then mkdir $(aucdir)/style; \
|
|
124 else true; fi ; \
|
|
125 $(MV) $(AUCELC) $(aucdir) ; \
|
|
126 $(MV) style/*.elc $(aucdir)/style ; \
|
|
127 $(CP) $(AUCSRC) $(aucdir) ; \
|
|
128 $(CP) style/*.el $(aucdir)/style ; \
|
|
129 else \
|
|
130 echo "Leaving compiled files in place."; \
|
|
131 fi
|
|
132
|
|
133 install-contrib:
|
|
134 $(MV) $(CONTRIBELC) $(aucdir)
|
|
135 $(MV) bib-cite.elc $(aucdir)
|
|
136 $(MV) font-latex.elc $(aucdir)
|
|
137 $(CP) $(CONTRIB) $(aucdir)
|
|
138
|
|
139 install-info:
|
|
140 -(cd doc; $(MAKE) install infodir=$(infodir))
|
|
141
|
|
142
|
|
143 install-auto:
|
|
144 @echo "Use \"M-x TeX-auto-generate-global RET\" instead."
|
|
145
|
|
146
|
|
147 .el.elc:
|
|
148 $(ELC) $<
|
|
149
|
|
150 clean:
|
|
151 rm -rf *~ #*# lex.yy.c idetex auctex
|
|
152 (cd doc; $(MAKE) clean)
|
|
153
|
|
154 wc:
|
|
155 wc $(AUCSRC) $(STYLESRC)
|
|
156
|
|
157 dist:
|
|
158 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
|
|
159 if [ "X$(OLD)" = "X" ]; then echo "No patch"; exit 1; fi
|
|
160 @echo "**********************************************************"
|
|
161 @echo "** Making distribution of auctex for release $(TAG)"
|
|
162 @echo "**********************************************************"
|
|
163 if [ -d auctex-$(TAG) ]; then rm -r auctex-$(TAG) ; fi
|
|
164 rm -f $(WWWDIR)/version
|
|
165 echo $(TAG) > $(WWWDIR)/version
|
|
166 perl -pi.bak -e "s/Version: $(OLD)/Version: $(TAG)/" \
|
|
167 $(AUCSRC) $(EXTRAFILES)
|
|
168 mv ChangeLog ChangeLog.old
|
|
169 echo `date "+%a %b %d %T %Y "` \
|
|
170 " Per Abrahamsen <abraham@dina.kvl.dk>" > ChangeLog
|
|
171 echo >> ChangeLog
|
|
172 echo " * Version" $(TAG) released. >> ChangeLog
|
|
173 echo >> ChangeLog
|
|
174 cat ChangeLog.old >> ChangeLog
|
|
175 cvs commit -m "Release $(OLD)++" tex.el
|
|
176 rm -f tex.el.orig
|
|
177 mv tex.el tex.el.orig
|
|
178 sed -e '/defconst AUC-TeX-date/s/"[^"]*"/"'"`date`"'"/' \
|
|
179 -e '/defconst AUC-TeX-version/s/"[^"]*"/"'$(TAG)'"/' \
|
|
180 < tex.el.orig > tex.el
|
|
181 rm -f $(REMOVE)
|
|
182 -cvs remove $(REMOVE)
|
|
183 -cvs add $(AUCSRC) $(EXTRAFILES)
|
|
184 -(cd doc; cvs add `echo $(DOCFILES) | sed -e s@doc/@@g` )
|
|
185 -(cd style; cvs add `echo $(STYLESRC) | sed -e s@style/@@g` )
|
|
186 cvs commit -m "Release $(TAG)"
|
|
187 cvs tag release_`echo $(TAG) | sed -e 's/[.]/_/g'`
|
|
188 mkdir auctex-$(TAG)
|
|
189 mkdir auctex-$(TAG)/style
|
|
190 mkdir auctex-$(TAG)/doc
|
|
191 cp $(AUCSRC) $(EXTRAFILES) auctex-$(TAG)
|
|
192 cp $(STYLESRC) auctex-$(TAG)/style
|
|
193 cp $(DOCFILES) auctex-$(TAG)/doc
|
|
194 (cd doc; $(MAKE) dist; cp auctex auctex-* ../auctex-$(TAG)/doc )
|
|
195 (cd doc; cp INSTALLATION README CHANGES ../auctex-$(TAG)/ )
|
|
196 cp doc/CHANGES $(FTPDIR)/CHANGES-$(TAG)
|
|
197 cp doc/auc-tex.ps $(FTPDIR)
|
|
198 cp ChangeLog $(FTPDIR)
|
|
199 cp doc/*.html $(WWWDIR)/doc
|
|
200 rm -f $(FTPDIR)/auctex-$(TAG).tar.gz $(FTPDIR)/auctex.tar.gz
|
|
201 rm -f $(FTPDIR)/auctex.tar.Z $(FTPDIR)/auctex.zip
|
|
202 tar -cf - auctex-$(TAG) | gzip --best > $(FTPDIR)/auctex-$(TAG).tar.gz
|
|
203 tar -cf - auctex-$(TAG) | compress > $(FTPDIR)/auctex.tar.Z
|
|
204 zip -r $(FTPDIR)/auctex auctex-$(TAG)
|
|
205 (cd $(FTPDIR); ln -s auctex-$(TAG).tar.gz auctex.tar.gz)
|
|
206 cvs rdiff -r release_`echo $(OLD) | sed -e 's/[.]/_/g'` \
|
|
207 -r release_`echo $(TAG) | sed -e 's/[.]/_/g'` auctex \
|
|
208 > $(FTPDIR)/auctex-$(OLD)-to-$(TAG).patch ; exit 0
|
|
209
|
|
210 patch:
|
|
211 cvs rdiff -r release_`echo $(OLD) | sed -e 's/[.]/_/g'` \
|
|
212 -r release_`echo $(TAG) | sed -e 's/[.]/_/g'` auctex
|
|
213
|
|
214 min-map:
|
|
215 -cvs add $(MINMAPSRC)
|
|
216 cvs commit -m "Update"
|
|
217 cp $(MINMAPSRC) doc/math-ref.tex $(FTPDIR)
|