Mercurial > hgrepos > hgweb.cgi > yatex
annotate makefile @ 382:e009c4f86ede dev
Change default directory of HELP file to under `site-lisp/yatex'.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 06 Jan 2015 20:29:08 +0900 |
parents | 9cef5d10a0f1 |
children | 04ee01ddb7ab |
rev | line source |
---|---|
24 | 1 # |
201 | 2 # Makefile for YaTeX/yahtml |
24 | 3 # |
4 | |
67 | 5 # Edit these variables to be suitable for your site |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
6 EMACS = emacs |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
7 #EMACS = mule |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
8 PREFIX = `${EMACS} -batch --eval '(princ (expand-file-name "../../../.." data-directory))'` |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
9 # PREFIX = /usr/local |
67 | 10 |
101 | 11 #EMACSDIR= ${PREFIX}/lib/${EMACS} |
201 | 12 ## emacs20 or later |
101 | 13 EMACSDIR= ${PREFIX}/share/${EMACS} |
81 | 14 ## XEmacs |
15 #EMACS = xemacs | |
16 #EMACSDIR= ${PREFIX}/lib/${EMACS} | |
17 ## Meadow (Sample) | |
18 #EMACS = meadow | |
19 #EMACSDIR = c:/usr/local/meadow | |
302 | 20 ## Cocoa(or Carbon)Emacs on Darwin (Sample) |
81 | 21 #EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs |
22 #PREFIX = /Applications/Emacs.app/Contents/Resources | |
23 #EMACSDIR = ${PREFIX} | |
24 | |
67 | 25 LISPDIR = ${EMACSDIR}/site-lisp/yatex |
81 | 26 # LISPDIR = ${EMACSDIR}/site-packages/lisp/yatex |
67 | 27 DOCDIR = ${LISPDIR}/docs |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
28 HELPDIR = ${LISPDIR}/help |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
29 INFODIR = ${PREFIX}/share/info |
67 | 30 |
81 | 31 TAR = tar |
67 | 32 INSTALL = install -c -m 444 |
81 | 33 MKDIR = mkdir -p |
34 INSTINFO= install-info | |
35 | |
36 | |
37 # Comment out below if you are using Emacs Windows(meadow, etc) | |
38 GEO = -geometry 80x20+0+0 | |
67 | 39 |
40 ################### | |
41 # Do not edit below | |
42 ################### | |
43 # make install to install YaTeX into public space | |
44 # make ajimi to feel taste | |
45 # make ajimi-nw same as above, but -nw mode | |
46 # make package to create package for relase | |
47 # make yahtmlpack to create package for relase | |
48 # make clean to delete all producted files | |
49 # make ci to check in all | |
81 | 50 # make co to check out all |
330 | 51 MVER = 1.78 |
52 LISP = ${LISP18} ${LISP19} ${LISP23} | |
67 | 53 YAHTML = yahtml.el |
54 COMMON = yatexlib.el yatexprc.el | |
55 LISP18 = comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el \ | |
56 ${COMMON} \ | |
57 yatexmth.el yatexhks.el yatexhlp.el \ | |
81 | 58 yatexm-o.el yatexsec.el yatexhie.el yatexpkg.el ${YAHTML} |
67 | 59 LISP19 = yatex19.el |
330 | 60 LISP23 = yatex23.el |
67 | 61 DOCS = ${DOCSRC} ${DOCOBJ} ${NEWS} |
62 NEWS = yatex.new | |
81 | 63 DOCHTML = docs/htmlqa docs/htmlqa.eng docs/yahtmlj.tex docs/yahtmle.tex |
67 | 64 DOCSRC = docs/yatexj.tex docs/yatexe.tex \ |
65 docs/yatex.ref docs/yatexref.eng \ | |
66 docs/yatexadd.doc docs/yatexgen.doc \ | |
67 docs/qanda docs/qanda.eng ${DOCHTML} | |
81 | 68 DOCOBJ = docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle |
67 | 69 HELP = help/YATEXHLP.jp help/YATEXHLP.eng |
24 | 70 MANIFEST= manifest |
201 | 71 EXTRA = dir install 00readme makefile readme.meadow.j newpage.rb |
67 | 72 DISTRIB = ${EXTRA} ${LISP} ${DOCS} ${MANIFEST} ${HELP} |
73 RCSFILE = ${LISP} ${NEWS} ${DOCSRC} ${HELP} | |
74 YAHTMLLISP = ${YAHTML} ${COMMON} | |
201 | 75 YAHTMLDIST = ${YAHTMLLISP} install 00readme makefile newpage.rb |
81 | 76 PACK = `ls ${DISTRIB}` |
24 | 77 TMPDIR = /tmp |
286 | 78 VERSION = `head -20 yatex.el|awk -F'"' '/revision/{print $$2}'` |
67 | 79 PACKDIR = ${TMPDIR}/yatex${VERSION} |
24 | 80 |
81 all: | |
67 | 82 @echo "Edit this makefile first." |
83 @echo 'Type "make install" to install YaTeX.' | |
84 @echo 'Type "make install-yahtml" to install yahtml.' | |
81 | 85 @echo 'If you cling to elc files. type "make elc" before make install' |
86 # @echo "If you don't use X-clinet of Emacs," | |
87 # @echo 'type "make install-nw" instead.' | |
24 | 88 |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
89 install: install-real install-message |
81 | 90 #install-yahtml: bytecompile-yahtml |
91 install-yahtml: | |
92 [ -d ${LISPDIR} ] || mkdir ${LISPDIR} | |
93 for f in *.el; do \ | |
94 rm -f ${LISPDIR}/$${f}c; \ | |
95 done | |
96 | |
97 ${INSTALL} *.el* ${LISPDIR} | |
67 | 98 |
99 install-real: | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
100 [ -d ${LISPDIR} ] || ${MKDIR} ${LISPDIR} |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
101 [ -d ${HELPDIR} ] || ${MKDIR} ${HELPDIR} |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
102 [ -d ${DOCDIR} ] || ${MKDIR} ${DOCDIR} |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
103 [ -d ${INFODIR} ] || ${MKDIR} ${INFODIR} |
81 | 104 for f in *.el; do \ |
105 rm -f ${LISPDIR}/$${f}c; \ | |
106 done | |
107 ${INSTALL} *.el* ${NEWS} ${LISPDIR} | |
67 | 108 ${INSTALL} ${DOCSRC} ${DOCDIR} |
109 ${INSTALL} ${DOCOBJ} ${INFODIR} | |
110 ${INSTALL} ${HELP} ${HELPDIR} | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
111 |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
112 install-message: |
81 | 113 @echo "--------------------------------" |
114 @echo "If you have install-info command, type 'make install-info'." | |
115 @echo "If not, add next lines into your site's info dir manually." | |
67 | 116 @cat dir |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
117 @echo "--------------------------------" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
118 @echo "=== INSTALLATION DONE ===" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
119 @echo " You might need to add these expression below to your ~/.emacs" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
120 @echo " ´°Î». ~/.emacs Åù¤Ë°Ê²¼¤òÄɲ乤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó." |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
121 @echo |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
122 @echo ";;; ------ Startup definitions for YaTeX ------ ;;;" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
123 @make show-init |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
124 @echo ";;; ------------------------------------------- ;;;" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
125 @echo |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
126 @echo " To get elisp above again, call make command as below." |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
127 @echo " ¾åµelisp¤òºÆÅÙÆÀ¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ëmake¤òµ¯Æ°¤·¤Æ¤¯¤À¤µ¤¤." |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
128 @echo " % make $${PREFIX:+PREFIX=$$PREFIX }show-init" |
67 | 129 |
81 | 130 install-info: |
131 for f in ${DOCOBJ}; do \ | |
132 b=`basename $$f | sed 's,/.*,,'`; \ | |
133 ${INSTINFO} --entry="`grep $$b dir`" --section=TeX \ | |
134 --section=Emacs $${f} ${INFODIR}/dir; \ | |
135 done | |
136 | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
137 show-init: |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
138 @printf '%s\n%s\n%s\n%s\n' \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
139 '(setq auto-mode-alist' \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
140 " (cons (cons \"\\.tex$$\" 'yatex-mode) auto-mode-alist))" \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
141 "(autoload 'yatex-mode \"yatex\" \"Yet Another LaTeX mode\" t)" \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
142 "(add-to-list 'load-path \"${LISPDIR}\")" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
143 @printf '(setq tex-command "%s")%s\n' \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
144 `CMDS='platex pdflatex ptex2pdf lualatex' DFLT=latex \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
145 make search-cmd` |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
146 @printf '(setq dvi2-command "%s")%s\n' \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
147 `CMDS='pxdvi xdvik kxdvi dviout texworks' DFLT=xdvi \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
148 make search-cmd` |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
149 @printf '(setq tex-pdfview-command "%s")%s\n' \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
150 `CMDS='evince mupdf xpdf kpdf texworks sumatrapdf' \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
151 DFLT=acroread \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
152 make search-cmd` |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
153 |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
154 show-init2: |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
155 @make LISPDIR=$$PWD show-init |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
156 |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
157 search-cmd: |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
158 @for f in $$CMDS; do \ |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
159 type $$f >/dev/null 2>&1 && echo $$f && exit 0; done; echo $$DFLT |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
160 |
67 | 161 install-nw: bytecompile-nw install-real |
162 | |
81 | 163 elc: bytecompile |
164 | |
67 | 165 bytecompile: lp |
166 if [ "$$DISPLAY"x = ""x ]; then \ | |
167 echo "Set DISPLAY environment variable!!"; exit 1; fi | |
81 | 168 ${EMACS} -q ${GEO} -l ./yatexlib.el -e bcf-and-exit ${LISP} |
67 | 169 |
81 | 170 bytecompile-nw: lp1 |
171 ${EMACS} -batch -l ./yatexlib.el -e batch-byte-compile ${LISP18} | |
67 | 172 |
81 | 173 bytecompile-yahtml: |
67 | 174 if [ "$$DISPLAY"x = ""x ]; then \ |
175 echo "Set DISPLAY environment variable!!"; exit 1; fi | |
81 | 176 ${EMACS} -q -g 80x20+0+0 -l ./yatexlib.el -e bcf-and-exit ${YAHTMLLISP} |
67 | 177 |
178 lp: | |
179 echo '(setq load-path (cons "." load-path))' > lp.el | |
180 echo '(load-file "./yatexlib.el")' >>lp.el | |
24 | 181 |
81 | 182 lp1: lp |
67 | 183 echo '(load-file "./yatex.el")' >>lp.el |
184 echo '(load-file "./comment.el")' >>lp.el | |
185 | |
186 lp2: | |
187 echo '(setq load-path (cons "'`pwd`'" load-path))' >>lp.el | |
188 echo '(setq auto-mode-alist' >>lp.el | |
189 echo '(cons (cons "\\.tex" '"'yatex-mode) auto-mode-alist))" >>lp.el | |
190 echo '(load-library "yatex")' >>lp.el | |
191 | |
192 ajimi: lp lp2 | |
193 ${EMACS} -l ./lp.el -e yatex-mode | |
194 | |
195 ajimi-nw: lp lp2 | |
196 ${EMACS} -nw -l ./lp.el -e yatex-mode | |
197 | |
198 clean: | |
199 rm -f *.elc *~ lp.el | |
200 | |
81 | 201 info: docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle |
67 | 202 |
203 docs/yatexj: docs/yatexj.tex | |
81 | 204 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexj.tex) |
67 | 205 |
206 docs/yatexe: docs/yatexe.tex | |
81 | 207 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexe.tex) |
208 | |
209 docs/yahtmlj: docs/yahtmlj.tex | |
210 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmlj.tex) | |
211 | |
212 docs/yahtmle: docs/yahtmle.tex | |
213 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmle.tex) | |
67 | 214 |
215 package: info | |
216 @-mkdir ${PACKDIR} | |
217 @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -) | |
218 ( version=${VERSION}; cd ${TMPDIR}; \ | |
219 ${TAR} vzcf ${TMPDIR}/yatex$$version.tar.gz yatex$$version) | |
220 | |
221 yahtmlpack: | |
222 @-mkdir ${PACKDIR} | |
223 @tar cf - ${YAHTMLDIST} | (cd ${PACKDIR}; tar xf -) | |
224 ( version=${VERSION}; cd ${TMPDIR}; \ | |
225 ${TAR} vzcf ${TMPDIR}/yahtml$$version.tar.gz yatex$$version) | |
24 | 226 |
227 ci: | |
67 | 228 ci -r${VERSION} -sRel -f ${RCSFILE} |
229 ci -u${VERSION} makefile 00readme | |
40 | 230 |
24 | 231 co: |
67 | 232 co ${RCSFILE} |
40 | 233 |
24 | 234 co-l: |
67 | 235 co -l ${RCSFILE} |
27 | 236 |
237 tci: | |
67 | 238 ci -l${VERSION}.0 -Ncurrent ${RCSFILE} makefile |
27 | 239 |
240 dostci: | |
67 | 241 ci -l${MVER}.0 -Ncurrent @rcsfile |
27 | 242 |
35 | 243 gohome: |
244 zip -u -r /com/okoma/yuuji/tmp/dosconv/yatex.zip . \ | |
245 -x '*RCS/*' -x 'texinfo/*' | |
81 | 246 |
247 RSYNCDIR = ${HOME}/http/yatex/rsync/yatex | |
114 | 248 #sync: |
249 # @-mkdir ${PACKDIR} | |
250 # @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -) | |
251 # syncdir -A -x CVS ${PACKDIR} ${RSYNCDIR} | |
252 # (cd ${RSYNCDIR}; cvs ci -m '') | |
253 # rm -rf ${PACKDIR} |