yatex

diff makefile @ 79:0734be649cb8

Do not care file-coding-system when YaTeX-kanji-code is nil. New completion yatexpkg.el is introduced.
author yuuji
date Thu, 25 Dec 2003 04:10:32 +0000
parents 0aca40805e70
children dacfb49eec6e
line diff
     1.1 --- a/makefile	Thu Jul 14 18:09:20 1994 +0000
     1.2 +++ b/makefile	Thu Dec 25 04:10:32 2003 +0000
     1.3 @@ -2,56 +2,158 @@
     1.4  # Makefile for YaTeX.
     1.5  #
     1.6  
     1.7 -MVER	= 1.50
     1.8 -LISP	= comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el yatexlib.el \
     1.9 -	  yatexmth.el yatexhks.el yatexhlp.el yatexprc.el \
    1.10 -	  yatexm-o.el yatexsec.el
    1.11 -#	\  yahatml.el 
    1.12 -DOCS	= $(DOCSRC) $(DOCOBJ)
    1.13 -DOCSRC	= yatex.new docs/yatexj.tex docs/yatexe.tex \
    1.14 -	  docs/yatex.ref docs/yatexadd.doc docs/yatexgen.doc docs/qanda
    1.15 +# Edit these variables to be suitable for your site
    1.16 +LIBDIR	= /usr/local/lib
    1.17 +
    1.18 +EMACSDIR= ${LIBDIR}/mule
    1.19 +LISPDIR	= ${EMACSDIR}/site-lisp/yatex
    1.20 +DOCDIR	= ${LISPDIR}/docs
    1.21 +HELPDIR	= ${EMACSDIR}/site-lisp
    1.22 +INFODIR	= ${EMACSDIR}/info
    1.23 +EMACS	= mule
    1.24 +
    1.25 +TAR	= gtar
    1.26 +INSTALL	= install -c -m 444
    1.27 +
    1.28 +###################
    1.29 +# Do not edit below
    1.30 +###################
    1.31 +# make install		to install YaTeX into public space
    1.32 +# make install-nw	same as above, but -nw mode, or Emacs18(Nemacs)
    1.33 +# make ajimi		to feel taste
    1.34 +# make ajimi-nw		same as above, but -nw mode
    1.35 +# make package		to create package for relase
    1.36 +# make yahtmlpack	to create package for relase
    1.37 +# make clean		to delete all producted files
    1.38 +# make ci		to check in all
    1.39 +# make co		to for check out all
    1.40 +MVER	= 1.61
    1.41 +LISP	= ${LISP18} ${LISP19}
    1.42 +YAHTML	= yahtml.el
    1.43 +COMMON	= yatexlib.el yatexprc.el
    1.44 +LISP18	= comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el \
    1.45 +	  ${COMMON} \
    1.46 +	  yatexmth.el yatexhks.el yatexhlp.el \
    1.47 +	  yatexm-o.el yatexsec.el  yatexhie.el ${YAHTML}
    1.48 +LISP19	= yatex19.el
    1.49 +DOCS	= ${DOCSRC} ${DOCOBJ} ${NEWS}
    1.50 +NEWS	= yatex.new
    1.51 +DOCHTML	= docs/htmlqa
    1.52 +DOCSRC	= docs/yatexj.tex docs/yatexe.tex \
    1.53 +	  docs/yatex.ref docs/yatexref.eng \
    1.54 +	  docs/yatexadd.doc docs/yatexgen.doc \
    1.55 +	  docs/qanda docs/qanda.eng ${DOCHTML}
    1.56  DOCOBJ	= docs/yatexj docs/yatexe
    1.57 -HELP	= help/YATEXHLP.jp
    1.58 +HELP	= help/YATEXHLP.jp help/YATEXHLP.eng
    1.59  MANIFEST= manifest
    1.60 -EXTRA	= dir install 00readme
    1.61 -DISTRIB = $(EXTRA) $(LISP) $(DOCS) $(MANIFEST) $(HELP)
    1.62 -RCSFILE	= $(LISP) $(DOCSRC) $(HELP)
    1.63 -PACK	= `echo $(DISTRIB)|xargs ls`
    1.64 -TAR	= gtar
    1.65 +EXTRA	= dir install 00readme makefile
    1.66 +DISTRIB = ${EXTRA} ${LISP} ${DOCS} ${MANIFEST} ${HELP}
    1.67 +RCSFILE	= ${LISP} ${NEWS} ${DOCSRC} ${HELP}
    1.68 +YAHTMLLISP = ${YAHTML} ${COMMON}
    1.69 +YAHTMLDIST = ${YAHTMLLISP} install 00readme makefile
    1.70 +PACK	= `echo ${DISTRIB}|xargs ls`
    1.71  TMPDIR	= /tmp
    1.72  VERSION = `head yatex.el|awk '/rev\./{print $$4}'`
    1.73 -PACKDIR	= $(TMPDIR)/yatex$(VERSION)
    1.74 -EMACS	= mule
    1.75 -INSTALL	= install -c
    1.76 +PACKDIR	= ${TMPDIR}/yatex${VERSION}
    1.77  
    1.78  all:
    1.79 +	@echo "Edit this makefile first."
    1.80 +	@echo 'Type "make install" to install YaTeX.'
    1.81 +	@echo 'Type "make install-yahtml" to install yahtml.'
    1.82 +	@echo "If you don't use X-clinet of Emacs,"
    1.83 +	@echo 'type "make install-nw" instead.'
    1.84  
    1.85 -install:
    1.86 -	$(EMACS) -batch -e batch-byte-compile $(LISP)
    1.87 -	#$(INSTALL) * $(MYELISPLIB)
    1.88 +install: bytecompile install-real
    1.89 +install-yahtml: bytecompile-yahtml
    1.90 +	if [ ! -d ${LISPDIR} ]; then mkdir ${LISPDIR}; fi
    1.91 +	${INSTALL} *.elc ${LISPDIR}
    1.92  
    1.93 -package:
    1.94 -	@-mkdir $(PACKDIR)
    1.95 -	@tar cf - $(PACK) | (cd $(PACKDIR); tar xf -)
    1.96 -	find $(PACKDIR) -type f -exec chmod -x '{}' \;
    1.97 -	( version=$(VERSION); cd $(TMPDIR); \
    1.98 -	     $(TAR) vzcf $(TMPDIR)/yatex$$version.tar.gz yatex$$version)
    1.99 +install-real:
   1.100 +	if [ ! -d ${LISPDIR} ]; then mkdir ${LISPDIR}; fi
   1.101 +	if [ ! -d ${DOCDIR} ]; then mkdir ${DOCDIR}; fi
   1.102 +	${INSTALL} *.elc ${NEWS} ${LISPDIR}
   1.103 +	${INSTALL} ${DOCSRC} ${DOCDIR}
   1.104 +	${INSTALL} ${DOCOBJ} ${INFODIR}
   1.105 +	${INSTALL} ${HELP} ${HELPDIR}
   1.106 +	@echo "Add next two lines into your site's info dir manually please!"
   1.107 +	@cat dir
   1.108 +
   1.109 +install-nw: bytecompile-nw install-real
   1.110 +
   1.111 +bytecompile: lp
   1.112 +	if [ "$$DISPLAY"x = ""x ]; then \
   1.113 +		echo "Set DISPLAY environment variable!!"; exit 1; fi
   1.114 +	${EMACS} -q -geometry 80x20+0+0 -l ./lp.el -e bcf-and-exit ${LISP}
   1.115 +
   1.116 +bytecompile-nw: lp lp1
   1.117 +	${EMACS} -batch -l ./lp.el -e batch-byte-compile ${LISP18}
   1.118 +
   1.119 +bytecompile-yahtml: lp
   1.120 +	if [ "$$DISPLAY"x = ""x ]; then \
   1.121 +		echo "Set DISPLAY environment variable!!"; exit 1; fi
   1.122 +	${EMACS} -q -g 80x20+0+0 -l ./lp.el -e bcf-and-exit ${YAHTMLLISP}
   1.123 +
   1.124 +lp:
   1.125 +	echo '(setq load-path (cons "." load-path))'	> lp.el
   1.126 +	echo '(load-file "./yatexlib.el")'		>>lp.el
   1.127 +
   1.128 +lp1:
   1.129 +	echo '(load-file "./yatex.el")'			>>lp.el
   1.130 +	echo '(load-file "./comment.el")'		>>lp.el
   1.131 +
   1.132 +lp2:
   1.133 +	echo '(setq load-path (cons "'`pwd`'" load-path))'		>>lp.el
   1.134 +	echo '(setq auto-mode-alist'					>>lp.el
   1.135 +	echo '(cons (cons "\\.tex" '"'yatex-mode) auto-mode-alist))"	>>lp.el
   1.136 +	echo '(load-library "yatex")'					>>lp.el
   1.137 +
   1.138 +ajimi: lp lp2
   1.139 +	${EMACS} -l ./lp.el -e yatex-mode
   1.140 +
   1.141 +ajimi-nw: lp lp2
   1.142 +	${EMACS} -nw -l ./lp.el -e yatex-mode
   1.143 +
   1.144 +clean:
   1.145 +	rm -f *.elc *~ lp.el
   1.146 +
   1.147 +info: docs/yatexj docs/yatexe
   1.148 +
   1.149 +docs/yatexj: docs/yatexj.tex
   1.150 +	(cd docs; ${EMACS} -batch yatexj.tex -e texinfo-format-buffer \
   1.151 +	 -e basic-save-buffer)
   1.152 +
   1.153 +docs/yatexe: docs/yatexe.tex
   1.154 +	(cd docs; ${EMACS} -batch yatexe.tex -e texinfo-format-buffer \
   1.155 +	 -e basic-save-buffer)
   1.156 +
   1.157 +package: info
   1.158 +	@-mkdir ${PACKDIR}
   1.159 +	@tar cf - ${PACK} | (cd ${PACKDIR}; tar xf -)
   1.160 +	find ${PACKDIR} -type f -exec chmod -x '{}' \;
   1.161 +	( version=${VERSION}; cd ${TMPDIR}; \
   1.162 +	     ${TAR} vzcf ${TMPDIR}/yatex$$version.tar.gz yatex$$version)
   1.163 +
   1.164 +yahtmlpack:
   1.165 +	@-mkdir ${PACKDIR}
   1.166 +	@tar cf - ${YAHTMLDIST} | (cd ${PACKDIR}; tar xf -)
   1.167 +	( version=${VERSION}; cd ${TMPDIR}; \
   1.168 +	     ${TAR} vzcf ${TMPDIR}/yahtml$$version.tar.gz yatex$$version)
   1.169  
   1.170  ci:
   1.171 -	ci -r$(VERSION) -sRel -f $(RCSFILE)
   1.172 -	ci -u$(VERSION) makefile
   1.173 +	ci -r${VERSION} -sRel -f ${RCSFILE}
   1.174 +	ci -u${VERSION} makefile 00readme
   1.175  
   1.176  co:
   1.177 -	co $(RCSFILE)
   1.178 +	co ${RCSFILE}
   1.179  
   1.180  co-l:
   1.181 -	co -l $(RCSFILE)
   1.182 +	co -l ${RCSFILE}
   1.183  
   1.184  tci:
   1.185 -	ci -l$(VERSION).0 -Ncurrent $(RCSFILE) makefile
   1.186 +	ci -l${VERSION}.0 -Ncurrent ${RCSFILE} makefile
   1.187  
   1.188  dostci:
   1.189 -	ci -l$(MVER).0 -Ncurrent @rcsfile
   1.190 +	ci -l${MVER}.0 -Ncurrent @rcsfile
   1.191  
   1.192  gohome:
   1.193  	zip -u -r /com/okoma/yuuji/tmp/dosconv/yatex.zip . \