yatex

annotate makefile @ 67:ced6eb72f63b

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