Mercurial > hgrepos > hgweb.cgi > yatex
annotate makefile @ 540:b9988caa505a dev
Update to "dev" branch explicitly
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 31 May 2018 09:38:52 +0900 |
parents | 7828dfd07246 |
children |
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 | |
489
e9c20490b85d
Refresh makefile: utf-8, rm comment.el
HIROSE Yuuji <yuuji@gentei.org>
parents:
487
diff
changeset
|
49 # make tag to add release tags |
330 | 50 LISP = ${LISP18} ${LISP19} ${LISP23} |
67 | 51 YAHTML = yahtml.el |
522
ce46889a743d
Add yatexflt.el to manifest
HIROSE Yuuji <yuuji@gentei.org>
parents:
489
diff
changeset
|
52 COMMON = yatexlib.el yatexprc.el yatexhlp.el |
489
e9c20490b85d
Refresh makefile: utf-8, rm comment.el
HIROSE Yuuji <yuuji@gentei.org>
parents:
487
diff
changeset
|
53 LISP18 = yatex.el yatexadd.el yatexgen.el yatexenv.el \ |
67 | 54 ${COMMON} \ |
533 | 55 yatexmth.el yatexhks.el yatexhlp.el yatexflt.el \ |
81 | 56 yatexm-o.el yatexsec.el yatexhie.el yatexpkg.el ${YAHTML} |
67 | 57 LISP19 = yatex19.el |
330 | 58 LISP23 = yatex23.el |
67 | 59 DOCS = ${DOCSRC} ${DOCOBJ} ${NEWS} |
60 NEWS = yatex.new | |
81 | 61 DOCHTML = docs/htmlqa docs/htmlqa.eng docs/yahtmlj.tex docs/yahtmle.tex |
67 | 62 DOCSRC = docs/yatexj.tex docs/yatexe.tex \ |
63 docs/yatex.ref docs/yatexref.eng \ | |
64 docs/yatexadd.doc docs/yatexgen.doc \ | |
65 docs/qanda docs/qanda.eng ${DOCHTML} | |
81 | 66 DOCOBJ = docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle |
67 | 67 HELP = help/YATEXHLP.jp help/YATEXHLP.eng |
24 | 68 MANIFEST= manifest |
201 | 69 EXTRA = dir install 00readme makefile readme.meadow.j newpage.rb |
67 | 70 DISTRIB = ${EXTRA} ${LISP} ${DOCS} ${MANIFEST} ${HELP} |
71 RCSFILE = ${LISP} ${NEWS} ${DOCSRC} ${HELP} | |
72 YAHTMLLISP = ${YAHTML} ${COMMON} | |
201 | 73 YAHTMLDIST = ${YAHTMLLISP} install 00readme makefile newpage.rb |
81 | 74 PACK = `ls ${DISTRIB}` |
24 | 75 TMPDIR = /tmp |
286 | 76 VERSION = `head -20 yatex.el|awk -F'"' '/revision/{print $$2}'` |
67 | 77 PACKDIR = ${TMPDIR}/yatex${VERSION} |
24 | 78 |
79 all: | |
67 | 80 @echo "Edit this makefile first." |
389 | 81 @echo 'Type "${MAKE} install" to install YaTeX.' |
82 @echo 'Type "${MAKE} install-yahtml" to install yahtml.' | |
83 @echo 'If you love elc files, type "${MAKE} elc" before ${MAKE} install' | |
81 | 84 # @echo "If you don't use X-clinet of Emacs," |
85 # @echo 'type "make install-nw" instead.' | |
24 | 86 |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
87 install: install-real install-message |
81 | 88 #install-yahtml: bytecompile-yahtml |
89 install-yahtml: | |
90 [ -d ${LISPDIR} ] || mkdir ${LISPDIR} | |
91 for f in *.el; do \ | |
92 rm -f ${LISPDIR}/$${f}c; \ | |
93 done | |
94 | |
95 ${INSTALL} *.el* ${LISPDIR} | |
67 | 96 |
97 install-real: | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
98 [ -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
|
99 [ -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
|
100 [ -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
|
101 [ -d ${INFODIR} ] || ${MKDIR} ${INFODIR} |
81 | 102 for f in *.el; do \ |
103 rm -f ${LISPDIR}/$${f}c; \ | |
104 done | |
105 ${INSTALL} *.el* ${NEWS} ${LISPDIR} | |
67 | 106 ${INSTALL} ${DOCSRC} ${DOCDIR} |
107 ${INSTALL} ${DOCOBJ} ${INFODIR} | |
108 ${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
|
109 |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
110 install-message: |
81 | 111 @echo "--------------------------------" |
389 | 112 @echo "If you have install-info command, type '${MAKE} install-info'." |
81 | 113 @echo "If not, add next lines into your site's info dir manually." |
67 | 114 @cat dir |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
115 @echo "--------------------------------" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
116 @echo "=== INSTALLATION DONE ===" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
117 @echo " You might need to add these expression below to your ~/.emacs" |
489
e9c20490b85d
Refresh makefile: utf-8, rm comment.el
HIROSE Yuuji <yuuji@gentei.org>
parents:
487
diff
changeset
|
118 @echo " 完了. ~/.emacs 等に以下を追加する必要があるかもしれません." |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
119 @echo |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
120 @echo ";;; ------ Startup definitions for YaTeX ------ ;;;" |
389 | 121 @${MAKE} show-init |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
122 @echo ";;; ------------------------------------------- ;;;" |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
123 @echo |
389 | 124 @echo " To get elisp above again, call ${MAKE} command as below." |
489
e9c20490b85d
Refresh makefile: utf-8, rm comment.el
HIROSE Yuuji <yuuji@gentei.org>
parents:
487
diff
changeset
|
125 @echo " 上記elispを再度得るには以下のように${MAKE}を起動してください." |
389 | 126 @echo " % ${MAKE} $${PREFIX:+PREFIX=$$PREFIX }show-init" |
67 | 127 |
81 | 128 install-info: |
129 for f in ${DOCOBJ}; do \ | |
130 b=`basename $$f | sed 's,/.*,,'`; \ | |
131 ${INSTINFO} --entry="`grep $$b dir`" --section=TeX \ | |
132 --section=Emacs $${f} ${INFODIR}/dir; \ | |
133 done | |
134 | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
135 show-init: |
387
04ee01ddb7ab
Simplify installation step. Update Q&A.
HIROSE Yuuji <yuuji@gentei.org>
parents:
382
diff
changeset
|
136 @printf '%s\n' \ |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
137 '(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
|
138 " (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
|
139 "(autoload 'yatex-mode \"yatex\" \"Yet Another LaTeX mode\" t)" \ |
387
04ee01ddb7ab
Simplify installation step. Update Q&A.
HIROSE Yuuji <yuuji@gentei.org>
parents:
382
diff
changeset
|
140 "(add-to-list 'load-path \"${LISPDIR}\")" \ |
04ee01ddb7ab
Simplify installation step. Update Q&A.
HIROSE Yuuji <yuuji@gentei.org>
parents:
382
diff
changeset
|
141 "(setq YaTeX-help-file \"${LISPDIR}/help/YATEXHLP.eng\")" |
389 | 142 @printf '(setq tex-command "%s")\n' \ |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
143 `CMDS='platex pdflatex ptex2pdf lualatex' DFLT=latex \ |
389 | 144 ${MAKE} -s search-cmd` |
145 @printf '(setq dvi2-command "%s")\n' \ | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
146 `CMDS='pxdvi xdvik kxdvi dviout texworks' DFLT=xdvi \ |
389 | 147 ${MAKE} -s search-cmd` |
148 @printf '(setq tex-pdfview-command "%s")\n' \ | |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
149 `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
|
150 DFLT=acroread \ |
389 | 151 ${MAKE} -s search-cmd` |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
152 |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
153 show-init2: |
389 | 154 @${MAKE} LISPDIR=$$PWD show-init |
382
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
155 |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
156 search-cmd: |
e009c4f86ede
Change default directory of HELP file to under `site-lisp/yatex'.
HIROSE Yuuji <yuuji@gentei.org>
parents:
330
diff
changeset
|
157 @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
|
158 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
|
159 |
67 | 160 install-nw: bytecompile-nw install-real |
161 | |
81 | 162 elc: bytecompile |
163 | |
67 | 164 bytecompile: lp |
165 if [ "$$DISPLAY"x = ""x ]; then \ | |
166 echo "Set DISPLAY environment variable!!"; exit 1; fi | |
81 | 167 ${EMACS} -q ${GEO} -l ./yatexlib.el -e bcf-and-exit ${LISP} |
67 | 168 |
81 | 169 bytecompile-nw: lp1 |
170 ${EMACS} -batch -l ./yatexlib.el -e batch-byte-compile ${LISP18} | |
67 | 171 |
81 | 172 bytecompile-yahtml: |
67 | 173 if [ "$$DISPLAY"x = ""x ]; then \ |
174 echo "Set DISPLAY environment variable!!"; exit 1; fi | |
81 | 175 ${EMACS} -q -g 80x20+0+0 -l ./yatexlib.el -e bcf-and-exit ${YAHTMLLISP} |
67 | 176 |
177 lp: | |
178 echo '(setq load-path (cons "." load-path))' > lp.el | |
179 echo '(load-file "./yatexlib.el")' >>lp.el | |
24 | 180 |
81 | 181 lp1: lp |
67 | 182 echo '(load-file "./yatex.el")' >>lp.el |
183 | |
184 lp2: | |
185 echo '(setq load-path (cons "'`pwd`'" load-path))' >>lp.el | |
186 echo '(setq auto-mode-alist' >>lp.el | |
187 echo '(cons (cons "\\.tex" '"'yatex-mode) auto-mode-alist))" >>lp.el | |
188 echo '(load-library "yatex")' >>lp.el | |
189 | |
190 ajimi: lp lp2 | |
191 ${EMACS} -l ./lp.el -e yatex-mode | |
192 | |
193 ajimi-nw: lp lp2 | |
194 ${EMACS} -nw -l ./lp.el -e yatex-mode | |
195 | |
196 clean: | |
197 rm -f *.elc *~ lp.el | |
198 | |
81 | 199 info: docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle |
67 | 200 |
201 docs/yatexj: docs/yatexj.tex | |
81 | 202 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexj.tex) |
67 | 203 |
204 docs/yatexe: docs/yatexe.tex | |
81 | 205 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexe.tex) |
206 | |
207 docs/yahtmlj: docs/yahtmlj.tex | |
208 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmlj.tex) | |
209 | |
210 docs/yahtmle: docs/yahtmle.tex | |
211 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmle.tex) | |
67 | 212 |
213 package: info | |
214 @-mkdir ${PACKDIR} | |
215 @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -) | |
216 ( version=${VERSION}; cd ${TMPDIR}; \ | |
217 ${TAR} vzcf ${TMPDIR}/yatex$$version.tar.gz yatex$$version) | |
218 | |
219 yahtmlpack: | |
220 @-mkdir ${PACKDIR} | |
221 @tar cf - ${YAHTMLDIST} | (cd ${PACKDIR}; tar xf -) | |
222 ( version=${VERSION}; cd ${TMPDIR}; \ | |
223 ${TAR} vzcf ${TMPDIR}/yahtml$$version.tar.gz yatex$$version) | |
24 | 224 |
479 | 225 tag: |
487 | 226 hg tag yatex-${VERSION} |
479 | 227 # ci: |
228 # ci -r${VERSION} -sRel -f ${RCSFILE} | |
229 # ci -u${VERSION} makefile 00readme | |
40 | 230 |
479 | 231 # co: |
232 # co ${RCSFILE} | |
27 | 233 |
234 | |
81 | 235 RSYNCDIR = ${HOME}/http/yatex/rsync/yatex |
535
5cc303fb927c
Target "sync" revived for CVS repo.
HIROSE Yuuji <yuuji@gentei.org>
parents:
533
diff
changeset
|
236 sync: |
537
565dcd09259d
Now "sync" target syncs all related repositories.
HIROSE Yuuji <yuuji@gentei.org>
parents:
536
diff
changeset
|
237 -hg push |
565dcd09259d
Now "sync" target syncs all related repositories.
HIROSE Yuuji <yuuji@gentei.org>
parents:
536
diff
changeset
|
238 -hg push git |
536
88878af9203d
Modify "sync" target to use hg instead of rsync.
HIROSE Yuuji <yuuji@gentei.org>
parents:
535
diff
changeset
|
239 -hg push cvs |
540
b9988caa505a
Update to "dev" branch explicitly
HIROSE Yuuji <yuuji@gentei.org>
parents:
539
diff
changeset
|
240 (cd ${RSYNCDIR} && hg up -Cv dev && cvs ci -m '') |