yatex

view makefile @ 67:ced6eb72f63b

*** empty log message ***
author yuuji
date Tue, 16 Dec 1997 13:34:57 +0000
parents 0aca40805e70
children dacfb49eec6e
line source
1 #
2 # Makefile for YaTeX.
3 #
5 # Edit these variables to be suitable for your site
6 LIBDIR = /usr/local/lib
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
15 TAR = gtar
16 INSTALL = install -c -m 444
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}
46 DOCOBJ = docs/yatexj docs/yatexe
47 HELP = help/YATEXHLP.jp help/YATEXHLP.eng
48 MANIFEST= manifest
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`
55 TMPDIR = /tmp
56 VERSION = `head yatex.el|awk '/rev\./{print $$4}'`
57 PACKDIR = ${TMPDIR}/yatex${VERSION}
59 all:
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.'
66 install: bytecompile install-real
67 install-yahtml: bytecompile-yahtml
68 if [ ! -d ${LISPDIR} ]; then mkdir ${LISPDIR}; fi
69 ${INSTALL} *.elc ${LISPDIR}
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
81 install-nw: bytecompile-nw install-real
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}
88 bytecompile-nw: lp lp1
89 ${EMACS} -batch -l ./lp.el -e batch-byte-compile ${LISP18}
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}
96 lp:
97 echo '(setq load-path (cons "." load-path))' > lp.el
98 echo '(load-file "./yatexlib.el")' >>lp.el
100 lp1:
101 echo '(load-file "./yatex.el")' >>lp.el
102 echo '(load-file "./comment.el")' >>lp.el
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
110 ajimi: lp lp2
111 ${EMACS} -l ./lp.el -e yatex-mode
113 ajimi-nw: lp lp2
114 ${EMACS} -nw -l ./lp.el -e yatex-mode
116 clean:
117 rm -f *.elc *~ lp.el
119 info: docs/yatexj docs/yatexe
121 docs/yatexj: docs/yatexj.tex
122 (cd docs; ${EMACS} -batch yatexj.tex -e texinfo-format-buffer \
123 -e basic-save-buffer)
125 docs/yatexe: docs/yatexe.tex
126 (cd docs; ${EMACS} -batch yatexe.tex -e texinfo-format-buffer \
127 -e basic-save-buffer)
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)
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)
142 ci:
143 ci -r${VERSION} -sRel -f ${RCSFILE}
144 ci -u${VERSION} makefile 00readme
146 co:
147 co ${RCSFILE}
149 co-l:
150 co -l ${RCSFILE}
152 tci:
153 ci -l${VERSION}.0 -Ncurrent ${RCSFILE} makefile
155 dostci:
156 ci -l${MVER}.0 -Ncurrent @rcsfile
158 gohome:
159 zip -u -r /com/okoma/yuuji/tmp/dosconv/yatex.zip . \
160 -x '*RCS/*' -x 'texinfo/*'