yatex

annotate makefile @ 101:970c50beb4ce

Change default emacsen from mule to emacs
author yuuji@gentei.org
date Mon, 28 Sep 2009 13:09:16 +0900
parents 801593454c59
children e106e877e4d8
rev   line source
yuuji@24 1 #
yuuji@81 2 # Makefile for YaTeX
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@81 11 ## emacs20
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@81 20 ## CarbonEmacs 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@91 52 MVER = 1.74
yuuji@67 53 LISP = ${LISP18} ${LISP19}
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@67 61 DOCS = ${DOCSRC} ${DOCOBJ} ${NEWS}
yuuji@67 62 NEWS = yatex.new
yuuji@81 63 DOCHTML = docs/htmlqa docs/htmlqa.eng docs/yahtmlj.tex docs/yahtmle.tex
yuuji@67 64 DOCSRC = docs/yatexj.tex docs/yatexe.tex \
yuuji@67 65 docs/yatex.ref docs/yatexref.eng \
yuuji@67 66 docs/yatexadd.doc docs/yatexgen.doc \
yuuji@67 67 docs/qanda docs/qanda.eng ${DOCHTML}
yuuji@81 68 DOCOBJ = docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle
yuuji@67 69 HELP = help/YATEXHLP.jp help/YATEXHLP.eng
yuuji@24 70 MANIFEST= manifest
yuuji@81 71 EXTRA = dir install 00readme makefile readme.meadow.j
yuuji@67 72 DISTRIB = ${EXTRA} ${LISP} ${DOCS} ${MANIFEST} ${HELP}
yuuji@67 73 RCSFILE = ${LISP} ${NEWS} ${DOCSRC} ${HELP}
yuuji@67 74 YAHTMLLISP = ${YAHTML} ${COMMON}
yuuji@67 75 YAHTMLDIST = ${YAHTMLLISP} install 00readme makefile
yuuji@81 76 PACK = `ls ${DISTRIB}`
yuuji@24 77 TMPDIR = /tmp
yuuji@24 78 VERSION = `head yatex.el|awk '/rev\./{print $$4}'`
yuuji@67 79 PACKDIR = ${TMPDIR}/yatex${VERSION}
yuuji@24 80
yuuji@24 81 all:
yuuji@67 82 @echo "Edit this makefile first."
yuuji@67 83 @echo 'Type "make install" to install YaTeX.'
yuuji@67 84 @echo 'Type "make install-yahtml" to install yahtml.'
yuuji@81 85 @echo 'If you cling to elc files. type "make elc" before make install'
yuuji@81 86 # @echo "If you don't use X-clinet of Emacs,"
yuuji@81 87 # @echo 'type "make install-nw" instead.'
yuuji@24 88
yuuji@81 89 install: install-real
yuuji@81 90 #install-yahtml: bytecompile-yahtml
yuuji@81 91 install-yahtml:
yuuji@81 92 [ -d ${LISPDIR} ] || mkdir ${LISPDIR}
yuuji@81 93 for f in *.el; do \
yuuji@81 94 rm -f ${LISPDIR}/$${f}c; \
yuuji@81 95 done
yuuji@81 96
yuuji@81 97 ${INSTALL} *.el* ${LISPDIR}
yuuji@24 98
yuuji@67 99 install-real:
yuuji@81 100 if [ ! -d ${LISPDIR} ]; then ${MKDIR} ${LISPDIR}; fi
yuuji@81 101 if [ ! -d ${DOCDIR} ]; then ${MKDIR} ${DOCDIR}; fi
yuuji@81 102 if [ ! -d ${INFODIR} ]; then ${MKDIR} ${INFODIR}; fi
yuuji@81 103 for f in *.el; do \
yuuji@81 104 rm -f ${LISPDIR}/$${f}c; \
yuuji@81 105 done
yuuji@81 106 ${INSTALL} *.el* ${NEWS} ${LISPDIR}
yuuji@67 107 ${INSTALL} ${DOCSRC} ${DOCDIR}
yuuji@67 108 ${INSTALL} ${DOCOBJ} ${INFODIR}
yuuji@67 109 ${INSTALL} ${HELP} ${HELPDIR}
yuuji@81 110 @echo "--------------------------------"
yuuji@81 111 @echo "If you have install-info command, type 'make install-info'."
yuuji@81 112 @echo "If not, add next lines into your site's info dir manually."
yuuji@67 113 @cat dir
yuuji@67 114
yuuji@81 115 install-info:
yuuji@81 116 for f in ${DOCOBJ}; do \
yuuji@81 117 b=`basename $$f | sed 's,/.*,,'`; \
yuuji@81 118 ${INSTINFO} --entry="`grep $$b dir`" --section=TeX \
yuuji@81 119 --section=Emacs $${f} ${INFODIR}/dir; \
yuuji@81 120 done
yuuji@81 121
yuuji@67 122 install-nw: bytecompile-nw install-real
yuuji@67 123
yuuji@81 124 elc: bytecompile
yuuji@81 125
yuuji@67 126 bytecompile: lp
yuuji@67 127 if [ "$$DISPLAY"x = ""x ]; then \
yuuji@67 128 echo "Set DISPLAY environment variable!!"; exit 1; fi
yuuji@81 129 ${EMACS} -q ${GEO} -l ./yatexlib.el -e bcf-and-exit ${LISP}
yuuji@67 130
yuuji@81 131 bytecompile-nw: lp1
yuuji@81 132 ${EMACS} -batch -l ./yatexlib.el -e batch-byte-compile ${LISP18}
yuuji@67 133
yuuji@81 134 bytecompile-yahtml:
yuuji@67 135 if [ "$$DISPLAY"x = ""x ]; then \
yuuji@67 136 echo "Set DISPLAY environment variable!!"; exit 1; fi
yuuji@81 137 ${EMACS} -q -g 80x20+0+0 -l ./yatexlib.el -e bcf-and-exit ${YAHTMLLISP}
yuuji@67 138
yuuji@67 139 lp:
yuuji@67 140 echo '(setq load-path (cons "." load-path))' > lp.el
yuuji@67 141 echo '(load-file "./yatexlib.el")' >>lp.el
yuuji@67 142
yuuji@81 143 lp1: lp
yuuji@67 144 echo '(load-file "./yatex.el")' >>lp.el
yuuji@67 145 echo '(load-file "./comment.el")' >>lp.el
yuuji@67 146
yuuji@67 147 lp2:
yuuji@67 148 echo '(setq load-path (cons "'`pwd`'" load-path))' >>lp.el
yuuji@67 149 echo '(setq auto-mode-alist' >>lp.el
yuuji@67 150 echo '(cons (cons "\\.tex" '"'yatex-mode) auto-mode-alist))" >>lp.el
yuuji@67 151 echo '(load-library "yatex")' >>lp.el
yuuji@67 152
yuuji@67 153 ajimi: lp lp2
yuuji@67 154 ${EMACS} -l ./lp.el -e yatex-mode
yuuji@67 155
yuuji@67 156 ajimi-nw: lp lp2
yuuji@67 157 ${EMACS} -nw -l ./lp.el -e yatex-mode
yuuji@67 158
yuuji@67 159 clean:
yuuji@67 160 rm -f *.elc *~ lp.el
yuuji@67 161
yuuji@81 162 info: docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle
yuuji@67 163
yuuji@67 164 docs/yatexj: docs/yatexj.tex
yuuji@81 165 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexj.tex)
yuuji@67 166
yuuji@67 167 docs/yatexe: docs/yatexe.tex
yuuji@81 168 (cd docs; ${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yatexe.tex)
yuuji@81 169
yuuji@81 170 docs/yahtmlj: docs/yahtmlj.tex
yuuji@81 171 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmlj.tex)
yuuji@81 172
yuuji@81 173 docs/yahtmle: docs/yahtmle.tex
yuuji@81 174 (cd docs;${EMACS} -batch -l ../yatexlib.el -e tfb-and-exit yahtmle.tex)
yuuji@67 175
yuuji@67 176 package: info
yuuji@67 177 @-mkdir ${PACKDIR}
yuuji@67 178 @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -)
yuuji@67 179 ( version=${VERSION}; cd ${TMPDIR}; \
yuuji@67 180 ${TAR} vzcf ${TMPDIR}/yatex$$version.tar.gz yatex$$version)
yuuji@67 181
yuuji@67 182 yahtmlpack:
yuuji@67 183 @-mkdir ${PACKDIR}
yuuji@67 184 @tar cf - ${YAHTMLDIST} | (cd ${PACKDIR}; tar xf -)
yuuji@67 185 ( version=${VERSION}; cd ${TMPDIR}; \
yuuji@67 186 ${TAR} vzcf ${TMPDIR}/yahtml$$version.tar.gz yatex$$version)
yuuji@24 187
yuuji@24 188 ci:
yuuji@67 189 ci -r${VERSION} -sRel -f ${RCSFILE}
yuuji@67 190 ci -u${VERSION} makefile 00readme
yuuji@40 191
yuuji@24 192 co:
yuuji@67 193 co ${RCSFILE}
yuuji@40 194
yuuji@24 195 co-l:
yuuji@67 196 co -l ${RCSFILE}
yuuji@27 197
yuuji@27 198 tci:
yuuji@67 199 ci -l${VERSION}.0 -Ncurrent ${RCSFILE} makefile
yuuji@27 200
yuuji@27 201 dostci:
yuuji@67 202 ci -l${MVER}.0 -Ncurrent @rcsfile
yuuji@27 203
yuuji@35 204 gohome:
yuuji@35 205 zip -u -r /com/okoma/yuuji/tmp/dosconv/yatex.zip . \
yuuji@35 206 -x '*RCS/*' -x 'texinfo/*'
yuuji@81 207
yuuji@81 208 RSYNCDIR = ${HOME}/http/yatex/rsync/yatex
yuuji@81 209 sync:
yuuji@81 210 @-mkdir ${PACKDIR}
yuuji@81 211 @tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -)
yuuji@81 212 syncdir -A -x CVS ${PACKDIR} ${RSYNCDIR}
yuuji@81 213 (cd ${RSYNCDIR}; cvs ci -m '')
yuuji@81 214 rm -rf ${PACKDIR}