summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/mdframed/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/mdframed/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/mdframed/Makefile101
1 files changed, 76 insertions, 25 deletions
diff --git a/Master/texmf-dist/source/latex/mdframed/Makefile b/Master/texmf-dist/source/latex/mdframed/Makefile
index ae65e5ab14a..53c5c0d3b2f 100644
--- a/Master/texmf-dist/source/latex/mdframed/Makefile
+++ b/Master/texmf-dist/source/latex/mdframed/Makefile
@@ -1,6 +1,6 @@
################################################################
## Makefile for mdframed project folder
-## $Id: Makefile 321 2012-01-09 18:57:42Z marco $
+## $Id: Makefile 422 2012-05-31 17:07:26Z marco $
################################################################
## Definitions
################################################################
@@ -15,8 +15,13 @@ EXAMPLED = mdframed-example-default
EXAMPLET = mdframed-example-tikz
EXAMPLEP = mdframed-example-pstricks
EXAMPLESX = mdframed-example-texsx
+STYLE_I = md-frame-0
+STYLE_II = md-frame-1
+STYLE_III = md-frame-2
+STYLE_IV = md-frame-3
EXAMPLLIST= $(EXAMPLED) $(EXAMPLET) $(EXAMPLEP) $(EXAMPLESX)
FILELIST = $(PACKAGE) $(EXAMPLED) $(EXAMPLET) $(EXAMPLEP) $(EXAMPLESX)
+STYLELIST = $(STYLE_I) $(STYLE_II) $(STYLE_III) $(STYLE_IV)
AUXFILES = aux dtxe glo glolog gls hd ins idx idxlog ilg ind log out ps thm tmp toc
################################################################
## Colordefinition
@@ -36,6 +41,7 @@ help:
@echo -e "\tmake examples\t\t--\tcompiles all example files"
@echo -e "\tmake clean\t\t--\tremove all helpfiles created by mdframed"
@echo -e "\tmake changeversion\t--\tmaintaner tool to change the version"
+ @echo -e "\tmake localinstall\t--\tinstall the package in TEXMFHOME"
@echo -e "$(WARN_COLOR)End help$(NO_COLOR)"
################################################################
@@ -44,14 +50,14 @@ help:
%.pdf: %.tex
NAME=`basename $< .tex` ;\
echo -e "" ;\
- echo -e "\t$(ERROR_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\
- pdflatex -draftmode -interaction=nonstopmode $< > /dev/null ;\
+ echo -e "\t$(WARN_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\
+ pdflatex --draftmode --interaction=nonstopmode $< > /dev/null ;\
if [ $$? = 0 ] ; then \
- echo -e "\t$(OK_COLOR)compilation in draftmode without erros$(NO_COLOR)" ;\
+ echo -e "\t$(OK_COLOR)compilation in draftmode without errors$(NO_COLOR)" ;\
echo -e "\t$(OK_COLOR)Run PDFLaTeX again on $$NAME.tex$(NO_COLOR)" ;\
- pdflatex -interaction=nonstopmode $< > /dev/null ;\
+ pdflatex --interaction=nonstopmode $< > /dev/null ;\
else \
- echo -e "\t$(ERROR_COLOR)compilation in draftmode with erros$(NO_COLOR)" ;\
+ echo -e "\t$(ERROR_COLOR)compilation in draftmode with errors$(NO_COLOR)" ;\
exit 0;\
fi ;\
echo -e "\t$(OK_COLOR)Typesetting $$NAME finished $(NO_COLOR)" ;\
@@ -59,46 +65,68 @@ help:
%.ps: %.tex
NAME=`basename $< .tex` ;\
echo -e "" ;\
- echo -e "\t$(ERROR_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\
- latex -draftmode -interaction=nonstopmode $< > /dev/null ;\
+ echo -e "\t$(WARN_COLOR)Typesetting $$NAME$(NO_COLOR)" ;\
+ xelatex --no-pdf --interaction=nonstopmode $< > /dev/null ;\
if [ $$? = 0 ] ; then \
- echo -e "\t$(OK_COLOR)compilation in draftmode without erros$(NO_COLOR)" ;\
+ echo -e "\t$(OK_COLOR)compilation in draftmode without errors$(NO_COLOR)" ;\
echo -e "\t$(OK_COLOR)Run LaTeX again on $$NAME.tex$(NO_COLOR)" ;\
- latex -interaction=nonstopmode $< > /dev/null ;\
- dvips -q $$NAME.dvi ;\
- ps2pdf $$NAME.ps ;\
+ xelatex --interaction=nonstopmode $< > /dev/null ;\
else \
- echo -e "\t$(ERROR_COLOR)compilation in draftmode with erros$(NO_COLOR)" ;\
+ echo -e "\t$(ERROR_COLOR)compilation in draftmode with errors$(NO_COLOR)" ;\
exit 0;\
fi ;\
echo -e "\t$(OK_COLOR)Typesetting $$NAME done$(NO_COLOR)" ;\
+
+# latex -draftmode -interaction=nonstopmode $< > /dev/null ;\
+# if [ $$? = 0 ] ; then \
+# echo -e "\t$(OK_COLOR)compilation in draftmode without errors$(NO_COLOR)" ;\
+# echo -e "\t$(OK_COLOR)Run LaTeX again on $$NAME.tex$(NO_COLOR)" ;\
+# latex -interaction=nonstopmode $< > /dev/null ;\
+# latex -interaction=nonstopmode $< > /dev/null ;\
+# dvips -q $$NAME.dvi ;\
+# ps2pdf $$NAME.ps ;\
+# else \
+# echo -e "\t$(ERROR_COLOR)compilation in draftmode with errors$(NO_COLOR)" ;\
+# exit 0;\
+# fi ;\
+# echo -e "\t$(OK_COLOR)Typesetting $$NAME done$(NO_COLOR)" ;\
################################################################
## Compilation
################################################################
docsty: $(PACKAGE).dtx
echo -e "" ;\
- echo -e "\t$(ERROR_COLOR)Typesetting $(PACKAGE).dtx$(NO_COLOR)" ;\
- pdflatex -draftmode -interaction=nonstopmode $(PACKAGE).dtx > /dev/null ;\
+ echo -e "\t$(WARN_COLOR)Typesetting $(PACKAGE).dtx$(NO_COLOR)" ;\
+ pdflatex --draftmode --interaction=nonstopmode $(PACKAGE).dtx > /dev/null ;\
if [ $$? = 0 ] ; then \
- echo -e "\t$(OK_COLOR)compilation in draftmode without erros$(NO_COLOR)" ;\
- makeindex -q -t $(PACKAGE).glolog -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo ;\
- if [ $$? = 0 ] ; then \
+ echo -e "\t$(OK_COLOR)compilation in draftmode without errors$(NO_COLOR)" ;\
+ if [ -f $(PACKAGE).glo ] ; then \
+ echo -e "\t$(WARN_COLOR)Typesetting $(PACKAGE).glo$(NO_COLOR)" ;\
+ makeindex -q -t $(PACKAGE).glolog -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo ;\
+ if [ $$? = 0 ] ; then \
echo -e "\t$(OK_COLOR)compilation of Glossar without errors$(NO_COLOR)" ;\
+ else \
+ echo -e "\t$(ERROR_COLOR)compilation of Glossar with errors$(NO_COLOR)" ;\
+ fi ;\
fi ;\
- makeindex -q -t $(PACKAGE).idxlog -s gind.ist $(PACKAGE).idx ;\
- if [ $$? = 0 ] ; then \
+ if [ -f $(PACKAGE).idx ] ; then \
+ echo -e "\t$(WARN_COLOR)Typesetting $(PACKAGE).idx$(NO_COLOR)" ;\
+ makeindex -q -t $(PACKAGE).idxlog -s gind.ist $(PACKAGE).idx ;\
+ if [ $$? = 0 ] ; then \
echo -e "\t$(OK_COLOR)compilation of Index without errors$(NO_COLOR)" ;\
+ else \
+ echo -e "\t$(ERROR_COLOR)compilation of Index with errors$(NO_COLOR)" ;\
+ fi ;\
fi ;\
pdflatex $(PACKAGE).dtx > /dev/null ;\
if [ $$? = 0 ] ; then \
- echo -e "\t$(OK_COLOR)Second pdflatex compilation without erros$(NO_COLOR)" ;\
+ echo -e "\t$(OK_COLOR)Second pdflatex compilation without errors$(NO_COLOR)" ;\
else \
- echo -e "\t$(ERROR_COLOR)Second pdflatex compilation with erros$(NO_COLOR)" ;\
+ echo -e "\t$(ERROR_COLOR)Second pdflatex compilation with errors$(NO_COLOR)" ;\
exit 0;\
fi ;\
pdflatex $(PACKAGE).dtx > /dev/null ;\
else \
- echo -e "\t$(ERROR_COLOR)compilation in draftmode with erros$(NO_COLOR)" ;\
+ echo -e "\t$(ERROR_COLOR)compilation in draftmode with errors$(NO_COLOR)" ;\
exit 0;\
fi ;\
@@ -111,7 +139,7 @@ examplesx:$(EXAMPLESX).pdf
clean:
echo "" ;\
- echo -e "\t$(ERROR_COLOR)Start removing help files$(NO_COLOR)" ;\
+ echo -e "\t$(WARN_COLOR)Start removing help files$(NO_COLOR)" ;\
for I in $(FILELIST) ;\
do \
for J in $(AUXFILES) ;\
@@ -123,6 +151,29 @@ clean:
all: docsty examples clean
+################################################################
+## personal setting
+################################################################
+localinstall: docsty examples makelocalinstall clean
+
+makelocalinstall:
+ echo "" ;\
+ echo -e "\t$(ERROR_COLOR)Start local install$(NO_COLOR)" ;\
+ PATHTEXHOME=`kpsewhich --var-value=TEXMFHOME` ;\
+ echo -e "\t$(ERROR_COLOR)Creating folders if don't exist$(NO_COLOR)" ;\
+ mkdir -p $$PATHTEXHOME/doc/latex/$(PACKAGE)/ ;\
+ mkdir -p $$PATHTEXHOME/tex/latex/$(PACKAGE)/ ;\
+ for I in $(FILELIST) ;\
+ do \
+ cp $$I.pdf $$PATHTEXHOME/doc/latex/$(PACKAGE)/ ;\
+ done ;\
+ for I in $(STYLELIST) ;\
+ do \
+ cp $$I.mdf $$PATHTEXHOME/tex/latex/$(PACKAGE)/ ;\
+ done ;\
+ cp $(PACKAGE).sty $$PATHTEXHOME/tex/latex/$(PACKAGE)/ ;\
+ cp ltxmdf.cls $$PATHTEXHOME/tex/latex/$(PACKAGE)/ ;\
+ echo -e "\t$(OK_COLOR)Installation done$(NO_COLOR)" ;\
################################################################
## maintaner tool
@@ -159,7 +210,7 @@ usectanify:
echo -e "\t$(OK_COLOR)ctanify without errors$(NO_COLOR)" ;\
echo -e "" ;\
else \
- echo -e "\t$(ERROR_COLOR)ctanify with erros$(NO_COLOR)" ;\
+ echo -e "\t$(ERROR_COLOR)ctanify with errors$(NO_COLOR)" ;\
exit 0;\
fi ;\