Mercurial > hg > xemacs-beta
comparison lisp/auctex/Makefile @ 24:4103f0995bd7 r19-15b95
Import from CVS: tag r19-15b95
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 08:51:03 +0200 |
| parents | |
| children | 441bb1e64a06 |
comparison
equal
deleted
inserted
replaced
| 23:0edd3412f124 | 24:4103f0995bd7 |
|---|---|
| 1 # Makefile - for the AUC TeX distribution. | |
| 2 # | |
| 3 # Maintainer: Per Abrahamsen <auc-tex@sunsite.auc.dk> | |
| 4 # Version: 9.7i | |
| 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 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 | |
| 101 install: install-lisp | |
| 102 | |
| 103 tex.elc: tex.el | |
| 104 $(ELC) $(AUCSRC) $(STYLESRC) | |
| 105 | |
| 106 contrib: | |
| 107 $(ELC) bib-cite.el | |
| 108 $(ELC) font-latex.el | |
| 109 # $(ELC) tex-jp.el # Doesn't compile without MULE | |
| 110 # $(ELC) hilit-LaTeX.el # Doesn't compile without X | |
| 111 | |
| 112 install-lisp: tex.elc | |
| 113 if [ ! -d $(lispdir) ]; then mkdir $(lispdir); else true; fi ; | |
| 114 if [ -f $(lispdir)/tex-site.el ]; \ | |
| 115 then \ | |
| 116 echo "Leaving old tex-site.el alone."; \ | |
| 117 else \ | |
| 118 sed -e 's#@AUCDIR#$(aucdir)/#' tex-site.el \ | |
| 119 > $(lispdir)/tex-site.el ; \ | |
| 120 fi | |
| 121 if [ ! -d $(aucdir) ]; then mkdir $(aucdir); else true; fi ; | |
| 122 if [ `/bin/pwd` != `(cd $(aucdir) && /bin/pwd)` ] ; \ | |
| 123 then \ | |
| 124 if [ ! -d $(aucdir)/style ]; then mkdir $(aucdir)/style; \ | |
| 125 else true; fi ; \ | |
| 126 $(MV) $(AUCELC) $(aucdir) ; \ | |
| 127 $(MV) style/*.elc $(aucdir)/style ; \ | |
| 128 $(CP) $(AUCSRC) $(aucdir) ; \ | |
| 129 $(CP) style/*.el $(aucdir)/style ; \ | |
| 130 else \ | |
| 131 echo "Leaving compiled files in place."; \ | |
| 132 fi | |
| 133 | |
| 134 install-contrib: | |
| 135 $(MV) $(CONTRIBELC) $(aucdir) | |
| 136 $(MV) bib-cite.elc $(aucdir) | |
| 137 $(MV) font-latex.elc $(aucdir) | |
| 138 $(CP) $(CONTRIB) $(aucdir) | |
| 139 | |
| 140 install-info: | |
| 141 -(cd doc; $(MAKE) install infodir=$(infodir)) | |
| 142 | |
| 143 | |
| 144 install-auto: | |
| 145 @echo "Use \"M-x TeX-auto-generate-global RET\" instead." | |
| 146 | |
| 147 | |
| 148 .el.elc: | |
| 149 $(ELC) $< | |
| 150 | |
| 151 clean: | |
| 152 rm -rf *~ #*# lex.yy.c idetex auctex | |
| 153 (cd doc; $(MAKE) clean) | |
| 154 | |
| 155 wc: | |
| 156 wc $(AUCSRC) $(STYLESRC) | |
| 157 | |
| 158 dist: | |
| 159 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi | |
| 160 if [ "X$(OLD)" = "X" ]; then echo "No patch"; exit 1; fi | |
| 161 @echo "**********************************************************" | |
| 162 @echo "** Making distribution of auctex for release $(TAG)" | |
| 163 @echo "**********************************************************" | |
| 164 if [ -d auctex-$(TAG) ]; then rm -r auctex-$(TAG) ; fi | |
| 165 rm -f $(WWWDIR)/version | |
| 166 echo $(TAG) > $(WWWDIR)/version | |
| 167 perl -pi.bak -e "s/Version: $(OLD)/Version: $(TAG)/" \ | |
| 168 $(AUCSRC) $(EXTRAFILES) | |
| 169 mv ChangeLog ChangeLog.old | |
| 170 echo `date "+%a %b %d %T %Y "` \ | |
| 171 " Per Abrahamsen <abraham@dina.kvl.dk>" > ChangeLog | |
| 172 echo >> ChangeLog | |
| 173 echo " * Version" $(TAG) released. >> ChangeLog | |
| 174 echo >> ChangeLog | |
| 175 cat ChangeLog.old >> ChangeLog | |
| 176 cvs commit -m "Release $(OLD)++" tex.el | |
| 177 rm -f tex.el.orig | |
| 178 mv tex.el tex.el.orig | |
| 179 sed -e '/defconst AUC-TeX-date/s/"[^"]*"/"'"`date`"'"/' \ | |
| 180 -e '/defconst AUC-TeX-version/s/"[^"]*"/"'$(TAG)'"/' \ | |
| 181 < tex.el.orig > tex.el | |
| 182 rm -f $(REMOVE) | |
| 183 -cvs remove $(REMOVE) | |
| 184 -cvs add $(AUCSRC) $(EXTRAFILES) | |
| 185 -(cd doc; cvs add `echo $(DOCFILES) | sed -e s@doc/@@g` ) | |
| 186 -(cd style; cvs add `echo $(STYLESRC) | sed -e s@style/@@g` ) | |
| 187 cvs commit -m "Release $(TAG)" | |
| 188 cvs tag release_`echo $(TAG) | sed -e 's/[.]/_/g'` | |
| 189 mkdir auctex-$(TAG) | |
| 190 mkdir auctex-$(TAG)/style | |
| 191 mkdir auctex-$(TAG)/doc | |
| 192 cp $(AUCSRC) $(EXTRAFILES) auctex-$(TAG) | |
| 193 cp $(STYLESRC) auctex-$(TAG)/style | |
| 194 cp $(DOCFILES) auctex-$(TAG)/doc | |
| 195 (cd doc; $(MAKE) dist; cp auctex auctex-* ../auctex-$(TAG)/doc ) | |
| 196 (cd doc; cp INSTALLATION README CHANGES ../auctex-$(TAG)/ ) | |
| 197 cp doc/CHANGES $(FTPDIR)/CHANGES-$(TAG) | |
| 198 cp doc/auc-tex.ps $(FTPDIR) | |
| 199 cp ChangeLog $(FTPDIR) | |
| 200 cp doc/*.html $(WWWDIR)/doc | |
| 201 rm -f $(FTPDIR)/auctex-$(TAG).tar.gz $(FTPDIR)/auctex.tar.gz | |
| 202 rm -f $(FTPDIR)/auctex.tar.Z $(FTPDIR)/auctex.zip | |
| 203 tar -cf - auctex-$(TAG) | gzip --best > $(FTPDIR)/auctex-$(TAG).tar.gz | |
| 204 tar -cf - auctex-$(TAG) | compress > $(FTPDIR)/auctex.tar.Z | |
| 205 zip -r $(FTPDIR)/auctex auctex-$(TAG) | |
| 206 (cd $(FTPDIR); ln -s auctex-$(TAG).tar.gz auctex.tar.gz) | |
| 207 cvs rdiff -r release_`echo $(OLD) | sed -e 's/[.]/_/g'` \ | |
| 208 -r release_`echo $(TAG) | sed -e 's/[.]/_/g'` auctex \ | |
| 209 > $(FTPDIR)/auctex-$(OLD)-to-$(TAG).patch ; exit 0 | |
| 210 | |
| 211 patch: | |
| 212 cvs rdiff -r release_`echo $(OLD) | sed -e 's/[.]/_/g'` \ | |
| 213 -r release_`echo $(TAG) | sed -e 's/[.]/_/g'` auctex | |
| 214 | |
| 215 min-map: | |
| 216 -cvs add $(MINMAPSRC) | |
| 217 cvs commit -m "Update" | |
| 218 cp $(MINMAPSRC) doc/math-ref.tex $(FTPDIR) |
