rev |
line source |
yuuji@24
|
1 #
|
yuuji@201
|
2 # Makefile for YaTeX/yahtml
|
yuuji@24
|
3 #
|
yuuji@24
|
4
|
yuuji@67
|
5 # Edit these variables to be suitable for your site
|
yuuji@81
|
6 PREFIX = /usr/local
|
yuuji@67
|
7
|
yuuji@81
|
8 ## mule2
|
yuuji@101
|
9 #EMACS = mule
|
yuuji@101
|
10 #EMACSDIR= ${PREFIX}/lib/${EMACS}
|
yuuji@201
|
11 ## emacs20 or later
|
yuuji@101
|
12 EMACS = emacs
|
yuuji@101
|
13 EMACSDIR= ${PREFIX}/share/${EMACS}
|
yuuji@81
|
14 ## XEmacs
|
yuuji@81
|
15 #EMACS = xemacs
|
yuuji@81
|
16 #EMACSDIR= ${PREFIX}/lib/${EMACS}
|
yuuji@81
|
17 ## Meadow (Sample)
|
yuuji@81
|
18 #EMACS = meadow
|
yuuji@81
|
19 #EMACSDIR = c:/usr/local/meadow
|
yuuji@302
|
20 ## Cocoa(or Carbon)Emacs on Darwin (Sample)
|
yuuji@81
|
21 #EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs
|
yuuji@81
|
22 #PREFIX = /Applications/Emacs.app/Contents/Resources
|
yuuji@81
|
23 #EMACSDIR = ${PREFIX}
|
yuuji@81
|
24
|
yuuji@67
|
25 LISPDIR = ${EMACSDIR}/site-lisp/yatex
|
yuuji@81
|
26 # LISPDIR = ${EMACSDIR}/site-packages/lisp/yatex
|
yuuji@67
|
27 DOCDIR = ${LISPDIR}/docs
|
yuuji@67
|
28 HELPDIR = ${EMACSDIR}/site-lisp
|
yuuji@81
|
29 INFODIR = ${PREFIX}/info
|
yuuji@67
|
30
|
yuuji@81
|
31 TAR = tar
|
yuuji@67
|
32 INSTALL = install -c -m 444
|
yuuji@81
|
33 MKDIR = mkdir -p
|
yuuji@81
|
34 INSTINFO= install-info
|
yuuji@81
|
35
|
yuuji@81
|
36
|
yuuji@81
|
37 # Comment out below if you are using Emacs Windows(meadow, etc)
|
yuuji@81
|
38 GEO = -geometry 80x20+0+0
|
yuuji@67
|
39
|
yuuji@67
|
40 ###################
|
yuuji@67
|
41 # Do not edit below
|
yuuji@67
|
42 ###################
|
yuuji@67
|
43 # make install to install YaTeX into public space
|
yuuji@67
|
44 # make install-nw same as above, but -nw mode, or Emacs18(Nemacs)
|
yuuji@67
|
45 # make ajimi to feel taste
|
yuuji@67
|
46 # make ajimi-nw same as above, but -nw mode
|
yuuji@67
|
47 # make package to create package for relase
|
yuuji@67
|
48 # make yahtmlpack to create package for relase
|
yuuji@67
|
49 # make clean to delete all producted files
|
yuuji@67
|
50 # make ci to check in all
|
yuuji@81
|
51 # make co to check out all
|
yuuji@330
|
52 MVER = 1.78
|
yuuji@330
|
53 LISP = ${LISP18} ${LISP19} ${LISP23}
|
yuuji@67
|
54 YAHTML = yahtml.el
|
yuuji@67
|
55 COMMON = yatexlib.el yatexprc.el
|
yuuji@67
|
56 LISP18 = comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el \
|
yuuji@67
|
57 ${COMMON} \
|
yuuji@67
|
58 yatexmth.el yatexhks.el yatexhlp.el \
|
yuuji@81
|
59 yatexm-o.el yatexsec.el yatexhie.el yatexpkg.el ${YAHTML}
|
yuuji@67
|
60 LISP19 = yatex19.el
|
yuuji@330
|
61 LISP23 = yatex23.el
|
yuuji@67
|
62 DOCS = ${DOCSRC} ${DOCOBJ} ${NEWS}
|
yuuji@67
|
63 NEWS = yatex.new
|
yuuji@81
|
64 DOCHTML = docs/htmlqa docs/htmlqa.eng docs/yahtmlj.tex docs/yahtmle.tex
|
yuuji@67
|
65 DOCSRC = docs/yatexj.tex docs/yatexe.tex \
|
yuuji@67
|
66 docs/yatex.ref docs/yatexref.eng \
|
yuuji@67
|
67 docs/yatexadd.doc docs/yatexgen.doc \
|
yuuji@67
|
68 docs/qanda docs/qanda.eng ${DOCHTML}
|
yuuji@81
|
69 DOCOBJ = docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle
|
yuuji@67
|
70 HELP = help/YATEXHLP.jp help/YATEXHLP.eng
|
yuuji@24
|
71 MANIFEST= manifest
|
yuuji@201
|
72 EXTRA = dir install 00readme makefile readme.meadow.j newpage.rb
|
yuuji@67
|
73 DISTRIB = ${EXTRA} ${LISP} ${DOCS} ${MANIFEST} ${HELP}
|
yuuji@67
|
74 RCSFILE = ${LISP} ${NEWS} ${DOCSRC} ${HELP}
|
yuuji@67
|
75 YAHTMLLISP = ${YAHTML} ${COMMON}
|
yuuji@201
|
76 YAHTMLDIST = ${YAHTMLLISP} install 00readme makefile newpage.rb
|
yuuji@81
|
77 PACK = `ls ${DISTRIB}`
|
yuuji@24
|
78 TMPDIR = /tmp
|
yuuji@286
|
79 VERSION = `head -20 yatex.el|awk -F'"' '/revision/{print $$2}'`
|
yuuji@67
|
80 PACKDIR = ${TMPDIR}/yatex${VERSION}
|
yuuji@24
|
81
|
yuuji@24
|
82 all:
|
yuuji@67
|
83 @echo "Edit this makefile first."
|
yuuji@67
|
84 @echo 'Type "make install" to install YaTeX.'
|
yuuji@67
|
85 @echo 'Type "make install-yahtml" to install yahtml.'
|
yuuji@81
|
86 @echo 'If you cling to elc files. type "make elc" before make install'
|
yuuji@81
|
87 # @echo "If you don't use X-clinet of Emacs,"
|
yuuji@81
|
88 # @echo 'type "make install-nw" instead.'
|
yuuji@24
|
89
|
yuuji@81
|
90 install: install-real
|
yuuji@81
|
91 #install-yahtml: bytecompile-yahtml
|
yuuji@81
|
92 install-yahtml:
|
yuuji@81
|
93 [ -d ${LISPDIR} ] || mkdir ${LISPDIR}
|
yuuji@81
|
94 for f in *.el; do \
|
yuuji@81
|
95 rm -f ${LISPDIR}/$${f}c; \
|
yuuji@81
|
96 done
|
yuuji@81
|
97
|
yuuji@81
|
98 ${INSTALL} *.el* ${LISPDIR}
|
yuuji@24
|
99
|
yuuji@67
|
100 install-real:
|
yuuji@81
|
101 if [ ! -d ${LISPDIR} ]; then ${MKDIR} ${LISPDIR}; fi
|
yuuji@81
|
102 if [ ! -d ${DOCDIR} ]; then ${MKDIR} ${DOCDIR}; fi
|
yuuji@81
|
103 if [ ! -d ${INFODIR} ]; then ${MKDIR} ${INFODIR}; fi
|
yuuji@81
|
104 for f in *.el; do \
|
yuuji@81
|
105 rm -f ${LISPDIR}/$${f}c; \
|
yuuji@81
|
106 done
|
yuuji@81
|
107 ${INSTALL} *.el* ${NEWS} ${LISPDIR}
|
yuuji@67
|
108 ${INSTALL} ${DOCSRC} ${DOCDIR}
|
yuuji@67
|
109 ${INSTALL} ${DOCOBJ} ${INFODIR}
|
yuuji@67
|
110 ${INSTALL} ${HELP} ${HELPDIR}
|
yuuji@81
|
111 @echo "--------------------------------"
|
yuuji@81
|
112 @echo "If you have install-info command, type 'make install-info'."
|
yuuji@81
|
113 @echo "If not, add next lines into your site's info dir manually."
|
yuuji@67
|
114 @cat dir
|
yuuji@67
|
115
|
yuuji@81
|
116 install-info:
|
yuuji@81
|
117 for f in ${DOCOBJ}; do \
|
yuuji@81
|
118 b=`basename $$f | sed 's,/.*,,'`; \
|
yuuji@81
|
119 ${INSTINFO} --entry="`grep $$b dir`" --section=TeX \
|
yuuji@81
|
120 --section=Emacs $${f} ${INFODIR}/dir; \
|
yuuji@81
|
121 done
|
yuuji@81
|
122
|
yuuji@67
|
123 install-nw: bytecompile-nw install-real
|
yuuji@67
|
124
|
yuuji@81
|
125 elc: bytecompile
|
yuuji@81
|
126
|
yuuji@67
|
127 bytecompile: lp
|
yuuji@67
|
128 if [ "$$DISPLAY"x = ""x ]; then \
|
yuuji@67
|
129 echo "Set DISPLAY environment variable!!"; exit 1; fi
|
yuuji@81
|
130 ${EMACS} -q ${GEO} -l ./yatexlib.el -e bcf-and-exit ${LISP}
|
yuuji@67
|
131
|
yuuji@81
|
132 bytecompile-nw: lp1
|
yuuji@81
|
133 ${EMACS} -batch -l ./yatexlib.el -e batch-byte-compile ${LISP18}
|
yuuji@67
|
134
|
yuuji@81
|
135 bytecompile-yahtml:
|
yuuji@67
|
136 if [ "$$DISPLAY"x = ""x ]; then \
|
yuuji@67
|
137 echo "Set DISPLAY environment variable!!"; exit 1; fi
|
yuuji@81
|
138 ${EMACS} -q -g 80x20+0+0 -l ./yatexlib.el -e bcf-and-exit ${YAHTMLLISP}
|
yuuji@67
|
139
|
yuuji@67
|
140 lp:
|
yuuji@67
|
141 echo '(setq load-path (cons "." load-path))' > lp.el
|
yuuji@67
|
142 echo '(load-file "./yatexlib.el")' >>lp.el
|
yuuji@67
|
143
|
yuuji@81
|
144 lp1: lp
|
yuuji@67
|
145 echo '(load-file "./yatex.el")' >>lp.el
|
yuuji@67
|
146 echo '(load-file "./comment.el")' >>lp.el
|
yuuji@67
|
147
|
yuuji@67
|
148 lp2:
|
yuuji@67
|
149 echo '(setq load-path (cons "'`pwd`'" load-path))' >>lp.el
|
yuuji@67
|
150 echo '(setq auto-mode-alist' >>lp.el
|
yuuji@67
|
151 echo '(cons (cons "\\.tex" '"'yatex-mode) auto-mode-alist))" >>lp.el
|
yuuji@67
|
152 echo '(load-library "yatex")' >>lp.el
|
yuuji@67
|
153
|
yuuji@67
|
154 ajimi: lp lp2
|
yuuji@67
|
155 ${EMACS} -l ./lp.el -e yatex-mode
|
yuuji@67
|
156
|
yuuji@67
|
157 ajimi-nw: lp lp2
|
yuuji@67
|
158 ${EMACS} -nw -l ./lp.el -e yatex-mode
|
yuuji@67
|
159
|
yuuji@67
|
160 clean:
|
yuuji@67
|
161 rm -f *.elc *~ lp.el
|
yuuji@67
|
162
|
yuuji@81
|
163 info: docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle
|
yuuji@67
|
164
|
yuuji@67
|
165 docs/yatexj: docs/yatexj.tex
|
yuuji@81
|
166 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexj.tex)
|
yuuji@67
|
167
|
yuuji@67
|
168 docs/yatexe: docs/yatexe.tex
|
yuuji@81
|
169 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexe.tex)
|
yuuji@81
|
170
|
yuuji@81
|
171 docs/yahtmlj: docs/yahtmlj.tex
|
yuuji@81
|
172 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmlj.tex)
|
yuuji@81
|
173
|
yuuji@81
|
174 docs/yahtmle: docs/yahtmle.tex
|
yuuji@81
|
175 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmle.tex)
|
yuuji@67
|
176
|
yuuji@67
|
177 package: info
|
yuuji@67
|
178 @-mkdir ${PACKDIR}
|
yuuji@67
|
179 @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -)
|
yuuji@67
|
180 ( version=${VERSION}; cd ${TMPDIR}; \
|
yuuji@67
|
181 ${TAR} vzcf ${TMPDIR}/yatex$$version.tar.gz yatex$$version)
|
yuuji@67
|
182
|
yuuji@67
|
183 yahtmlpack:
|
yuuji@67
|
184 @-mkdir ${PACKDIR}
|
yuuji@67
|
185 @tar cf - ${YAHTMLDIST} | (cd ${PACKDIR}; tar xf -)
|
yuuji@67
|
186 ( version=${VERSION}; cd ${TMPDIR}; \
|
yuuji@67
|
187 ${TAR} vzcf ${TMPDIR}/yahtml$$version.tar.gz yatex$$version)
|
yuuji@24
|
188
|
yuuji@24
|
189 ci:
|
yuuji@67
|
190 ci -r${VERSION} -sRel -f ${RCSFILE}
|
yuuji@67
|
191 ci -u${VERSION} makefile 00readme
|
yuuji@40
|
192
|
yuuji@24
|
193 co:
|
yuuji@67
|
194 co ${RCSFILE}
|
yuuji@40
|
195
|
yuuji@24
|
196 co-l:
|
yuuji@67
|
197 co -l ${RCSFILE}
|
yuuji@27
|
198
|
yuuji@27
|
199 tci:
|
yuuji@67
|
200 ci -l${VERSION}.0 -Ncurrent ${RCSFILE} makefile
|
yuuji@27
|
201
|
yuuji@27
|
202 dostci:
|
yuuji@67
|
203 ci -l${MVER}.0 -Ncurrent @rcsfile
|
yuuji@27
|
204
|
yuuji@35
|
205 gohome:
|
yuuji@35
|
206 zip -u -r /com/okoma/yuuji/tmp/dosconv/yatex.zip . \
|
yuuji@35
|
207 -x '*RCS/*' -x 'texinfo/*'
|
yuuji@81
|
208
|
yuuji@81
|
209 RSYNCDIR = ${HOME}/http/yatex/rsync/yatex
|
yuuji@114
|
210 #sync:
|
yuuji@114
|
211 # @-mkdir ${PACKDIR}
|
yuuji@114
|
212 # @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -)
|
yuuji@114
|
213 # syncdir -A -x CVS ${PACKDIR} ${RSYNCDIR}
|
yuuji@114
|
214 # (cd ${RSYNCDIR}; cvs ci -m '')
|
yuuji@114
|
215 # rm -rf ${PACKDIR}
|