diff options
author | Karl Berry <karl@freefriends.org> | 2007-10-24 23:29:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-10-24 23:29:14 +0000 |
commit | c5199a08bb8edc16006e6a5fc72cc704d7eae776 (patch) | |
tree | 729971967a99529b74598d27dd7cc585e0218e41 /Master/texmf-dist/source/latex/cweb-latex | |
parent | bfaf341636c39818969bd384bb1e5fda9195f3a5 (diff) |
new (to TL) cweb-latex package (4feb07)
git-svn-id: svn://tug.org/texlive/trunk@5271 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/cweb-latex')
-rw-r--r-- | Master/texmf-dist/source/latex/cweb-latex/Makefile | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/cweb-latex/Makefile b/Master/texmf-dist/source/latex/cweb-latex/Makefile new file mode 100644 index 00000000000..a280ae7cd99 --- /dev/null +++ b/Master/texmf-dist/source/latex/cweb-latex/Makefile @@ -0,0 +1,79 @@ +# $Id: Makefile,v 1.5 1995/11/21 00:41:49 schrod Exp $ +#---------------------------------------------------------------------- + +default:: install + + +# +# installation +# + +# root of TDS compliant installation + + TEXMF = /usr/local/lib/texmf + +# Comment it out if you don't want to install contributed packages. +# (Not recommended.) + + INSTALL_CONTRIB = install-contrib + +# installation target directories +# (No need to change here for TDS installations.) + + LATEX = $(TEXMF)/tex/latex + CWEB = $(LATEX)/cweb + + LATEX_DOC = $(TEXMF)/doc/latex + CWEB_DOC = styles/cweb + + +# installation actions + +.PHONY: install install-cweb-sty install-contrib + +install:: install-cweb-sty $(INSTALL_CONTRIB) + +install-cweb-sty:: $(LATEX) $(LATEX_DOC) + test -d $(CWEB) || mkdir $(CWEB) + cp *.sty *.cls $(CWEB) + cd $(LATEX_DOC) ; \ + if [ ! -d $(CWEB_DOC) ] ; \ + then d=`echo $(CWEB_DOC) | sed 's:/.*::'` ; \ + test -d $$d || mkdir $$d ; \ + test -d $(CWEB_DOC) || mkdir $(CWEB_DOC) ; \ + fi + cp *.dvi $(LATEX_DOC)/$(CWEB_DOC) + +install-contrib:: + cp contrib/*.sty $(CWEB) + : cp contrib/*.dvi $(CWEB_DOC) + +$(LATEX): + @echo "You don't have a LaTeX styles directory (tree)." >&2 + @exit 1 + +$(LATEX_DOC): + @echo "You don't have a LaTeX documentation directory (tree)." >&2 + @exit 1 + + +# +# management tasks +# + +.PHONY: distrib collect pack + +distrib:: collect pack + +pack:: + cp $(HOME)/Notes/Copying.gpl License + pwd=`pwd` ; pwd=`suffix $$pwd /` ; cd .. ; \ + gtar -czvf $$pwd.tar.gz \ + --exclude=CVS --exclude=.cvsignore --exclude=.rcsrc $$pwd ; \ + cp $$pwd/README $$pwd.README + /bin/rm -f License + +collect:: + cd src ; imkmf ; make distrib + cd examples ; make distrib + : 'cd contrib ; make distrib' |