24
|
1 #
|
|
2 # Makefile for YaTeX.
|
|
3 #
|
|
4
|
67
|
5 # Edit these variables to be suitable for your site
|
|
6 LIBDIR = /usr/local/lib
|
|
7
|
|
8 EMACSDIR= ${LIBDIR}/mule
|
|
9 LISPDIR = ${EMACSDIR}/site-lisp/yatex
|
|
10 DOCDIR = ${LISPDIR}/docs
|
|
11 HELPDIR = ${EMACSDIR}/site-lisp
|
|
12 INFODIR = ${EMACSDIR}/info
|
|
13 EMACS = mule
|
|
14
|
|
15 TAR = gtar
|
|
16 INSTALL = install -c -m 444
|
|
17
|
|
18 ###################
|
|
19 # Do not edit below
|
|
20 ###################
|
|
21 # make install to install YaTeX into public space
|
|
22 # make install-nw same as above, but -nw mode, or Emacs18(Nemacs)
|
|
23 # make ajimi to feel taste
|
|
24 # make ajimi-nw same as above, but -nw mode
|
|
25 # make package to create package for relase
|
|
26 # make yahtmlpack to create package for relase
|
|
27 # make clean to delete all producted files
|
|
28 # make ci to check in all
|
|
29 # make co to for check out all
|
|
30 MVER = 1.61
|
|
31 LISP = ${LISP18} ${LISP19}
|
|
32 YAHTML = yahtml.el
|
|
33 COMMON = yatexlib.el yatexprc.el
|
|
34 LISP18 = comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el \
|
|
35 ${COMMON} \
|
|
36 yatexmth.el yatexhks.el yatexhlp.el \
|
|
37 yatexm-o.el yatexsec.el yatexhie.el ${YAHTML}
|
|
38 LISP19 = yatex19.el
|
|
39 DOCS = ${DOCSRC} ${DOCOBJ} ${NEWS}
|
|
40 NEWS = yatex.new
|
|
41 DOCHTML = docs/htmlqa
|
|
42 DOCSRC = docs/yatexj.tex docs/yatexe.tex \
|
|
43 docs/yatex.ref docs/yatexref.eng \
|
|
44 docs/yatexadd.doc docs/yatexgen.doc \
|
|
45 docs/qanda docs/qanda.eng ${DOCHTML}
|
27
|
46 DOCOBJ = docs/yatexj docs/yatexe
|
67
|
47 HELP = help/YATEXHLP.jp help/YATEXHLP.eng
|
24
|
48 MANIFEST= manifest
|
67
|
49 EXTRA = dir install 00readme makefile
|
|
50 DISTRIB = ${EXTRA} ${LISP} ${DOCS} ${MANIFEST} ${HELP}
|
|
51 RCSFILE = ${LISP} ${NEWS} ${DOCSRC} ${HELP}
|
|
52 YAHTMLLISP = ${YAHTML} ${COMMON}
|
|
53 YAHTMLDIST = ${YAHTMLLISP} install 00readme makefile
|
|
54 PACK = `echo ${DISTRIB}|xargs ls`
|
24
|
55 TMPDIR = /tmp
|
|
56 VERSION = `head yatex.el|awk '/rev\./{print $$4}'`
|
67
|
57 PACKDIR = ${TMPDIR}/yatex${VERSION}
|
24
|
58
|
|
59 all:
|
67
|
60 @echo "Edit this makefile first."
|
|
61 @echo 'Type "make install" to install YaTeX.'
|
|
62 @echo 'Type "make install-yahtml" to install yahtml.'
|
|
63 @echo "If you don't use X-clinet of Emacs,"
|
|
64 @echo 'type "make install-nw" instead.'
|
24
|
65
|
67
|
66 install: bytecompile install-real
|
|
67 install-yahtml: bytecompile-yahtml
|
|
68 if [ ! -d ${LISPDIR} ]; then mkdir ${LISPDIR}; fi
|
|
69 ${INSTALL} *.elc ${LISPDIR}
|
|
70
|
|
71 install-real:
|
|
72 if [ ! -d ${LISPDIR} ]; then mkdir ${LISPDIR}; fi
|
|
73 if [ ! -d ${DOCDIR} ]; then mkdir ${DOCDIR}; fi
|
|
74 ${INSTALL} *.elc ${NEWS} ${LISPDIR}
|
|
75 ${INSTALL} ${DOCSRC} ${DOCDIR}
|
|
76 ${INSTALL} ${DOCOBJ} ${INFODIR}
|
|
77 ${INSTALL} ${HELP} ${HELPDIR}
|
|
78 @echo "Add next two lines into your site's info dir manually please!"
|
|
79 @cat dir
|
|
80
|
|
81 install-nw: bytecompile-nw install-real
|
|
82
|
|
83 bytecompile: lp
|
|
84 if [ "$$DISPLAY"x = ""x ]; then \
|
|
85 echo "Set DISPLAY environment variable!!"; exit 1; fi
|
|
86 ${EMACS} -q -geometry 80x20+0+0 -l ./lp.el -e bcf-and-exit ${LISP}
|
|
87
|
|
88 bytecompile-nw: lp lp1
|
|
89 ${EMACS} -batch -l ./lp.el -e batch-byte-compile ${LISP18}
|
|
90
|
|
91 bytecompile-yahtml: lp
|
|
92 if [ "$$DISPLAY"x = ""x ]; then \
|
|
93 echo "Set DISPLAY environment variable!!"; exit 1; fi
|
|
94 ${EMACS} -q -g 80x20+0+0 -l ./lp.el -e bcf-and-exit ${YAHTMLLISP}
|
|
95
|
|
96 lp:
|
|
97 echo '(setq load-path (cons "." load-path))' > lp.el
|
|
98 echo '(load-file "./yatexlib.el")' >>lp.el
|
24
|
99
|
67
|
100 lp1:
|
|
101 echo '(load-file "./yatex.el")' >>lp.el
|
|
102 echo '(load-file "./comment.el")' >>lp.el
|
|
103
|
|
104 lp2:
|
|
105 echo '(setq load-path (cons "'`pwd`'" load-path))' >>lp.el
|
|
106 echo '(setq auto-mode-alist' >>lp.el
|
|
107 echo '(cons (cons "\\.tex" '"'yatex-mode) auto-mode-alist))" >>lp.el
|
|
108 echo '(load-library "yatex")' >>lp.el
|
|
109
|
|
110 ajimi: lp lp2
|
|
111 ${EMACS} -l ./lp.el -e yatex-mode
|
|
112
|
|
113 ajimi-nw: lp lp2
|
|
114 ${EMACS} -nw -l ./lp.el -e yatex-mode
|
|
115
|
|
116 clean:
|
|
117 rm -f *.elc *~ lp.el
|
|
118
|
|
119 info: docs/yatexj docs/yatexe
|
|
120
|
|
121 docs/yatexj: docs/yatexj.tex
|
|
122 (cd docs; ${EMACS} -batch yatexj.tex -e texinfo-format-buffer \
|
|
123 -e basic-save-buffer)
|
|
124
|
|
125 docs/yatexe: docs/yatexe.tex
|
|
126 (cd docs; ${EMACS} -batch yatexe.tex -e texinfo-format-buffer \
|
|
127 -e basic-save-buffer)
|
|
128
|
|
129 package: info
|
|
130 @-mkdir ${PACKDIR}
|
|
131 @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -)
|
|
132 find ${PACKDIR} -type f -exec chmod -x '{}' \;
|
|
133 ( version=${VERSION}; cd ${TMPDIR}; \
|
|
134 ${TAR} vzcf ${TMPDIR}/yatex$$version.tar.gz yatex$$version)
|
|
135
|
|
136 yahtmlpack:
|
|
137 @-mkdir ${PACKDIR}
|
|
138 @tar cf - ${YAHTMLDIST} | (cd ${PACKDIR}; tar xf -)
|
|
139 ( version=${VERSION}; cd ${TMPDIR}; \
|
|
140 ${TAR} vzcf ${TMPDIR}/yahtml$$version.tar.gz yatex$$version)
|
24
|
141
|
|
142 ci:
|
67
|
143 ci -r${VERSION} -sRel -f ${RCSFILE}
|
|
144 ci -u${VERSION} makefile 00readme
|
40
|
145
|
24
|
146 co:
|
67
|
147 co ${RCSFILE}
|
40
|
148
|
24
|
149 co-l:
|
67
|
150 co -l ${RCSFILE}
|
27
|
151
|
|
152 tci:
|
67
|
153 ci -l${VERSION}.0 -Ncurrent ${RCSFILE} makefile
|
27
|
154
|
|
155 dostci:
|
67
|
156 ci -l${MVER}.0 -Ncurrent @rcsfile
|
27
|
157
|
35
|
158 gohome:
|
|
159 zip -u -r /com/okoma/yuuji/tmp/dosconv/yatex.zip . \
|
|
160 -x '*RCS/*' -x 'texinfo/*'
|