1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
|
# ======================================================================
# Makefile.baseinit
# Copyright (c) Markus Kohm, 2002-2013
#
# This file is part of the LaTeX2e KOMA-Script bundle.
#
# This work may be distributed and/or modified under the conditions of
# the LaTeX Project Public License, version 1.3c of the license.
# The latest version of this license is in
# http://www.latex-project.org/lppl.txt
# and version 1.3c or later is part of all distributions of LaTeX
# version 2005/12/01 or later and of this work.
#
# This work has the LPPL maintenance status "author-maintained".
#
# The Current Maintainer and author of this work is Markus Kohm.
#
# This work consists of all files listed in manifest.txt.
# ----------------------------------------------------------------------
# Makefile.baseinit
# Copyright (c) Markus Kohm, 2002-2013
#
# Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
# Version 1.3c, verteilt und/oder veraendert werden.
# Die neuste Version dieser Lizenz ist
# http://www.latex-project.org/lppl.txt
# und Version 1.3c ist Teil aller Verteilungen von LaTeX
# Version 2005/12/01 oder spaeter und dieses Werks.
#
# Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained"
# (allein durch den Autor verwaltet).
#
# Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
#
# Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien.
# ======================================================================
# This is the basic initialization of environment, programm variables
# etc. You may overload each of the defined variables at Makefile.cfg.
# To do so, just copy the original definition to Makefile.cfg and change
# it there.
# ----------------------------------------------------------------------
# Hier finden Sie die Grundinitialisierung der Umgebungsvariablen,
# Programmvariablen usw. Sie knnen die Definition jeder dieser
# Variablen in Makefile.cfg berladen. Um dies zu tun, kopieren Sie
# einfach die Originaldefinition in Makefile.cfg und ndern die
# Definition dort entsprechend Ihrer Anforderungen.
# ======================================================================
# ----------------------------------------------------------------------
# KOMA-Script subfolder
KOMASCRIPTSUBDIR=/koma-script
# ----------------------------------------------------------------------
# The texmf-directory, where to install new stuff (see texmf.cnf)
# If you don't know what to do, search for directory texmf at /usr.
# With teTeX and linux often one of following is used:
#INSTALLTEXMF ?= /usr/TeX/texmf
#INSTALLTEXMF ?= /usr/local/TeX/texmf
#INSTALLTEXMF ?= /usr/share/texmf
#INSTALLTEXMF ?= /usr/local/share/texmf
# user tree:
#INSTALLTEXMF ?= $(HOME)/texmf
# Try to use user's tree known by kpsewhich:
#INSTALLTEXMF ?= $(shell kpsewhich -expand-var '$$HOMETEXMF')
# Try to use the local tree known by kpsewhich:
#INSTALLTEXMF ?= $(shell kpsewhich -expand-var '$$TEXMFLOCAL')
# But you may set INSTALLTEXMF to every directory you want.
# Use following, if you only want to test the installation:
#INSTALLTEXMF ?= /tmp/texmf
# Do a more complicate default:
ifneq ($(USER),root)
INSTALLTEXMF ?= $(shell kpsewhich -expand-var='$$HOMETEXMF')
ifeq ($(INSTALLTEXMF),$$HOMETEXMF)
INSTALLTEXMF :=
endif
ifeq ($(INSTALLTEXMF),)
INSTALLTEXMF = $(shell kpsewhich -expand-var='$$TEXMFHOME')
ifeq ($(INSTALLTEXMF),$$TEXMFHOME)
INSTALLTEXMF :=
endif
endif
endif
ifeq ($(INSTALLTEXMF),)
INSTALLTEXMF = $(shell kpsewhich -expand-var='$$TEXMFLOCAL')
ifeq ($(INSTALLTEXMF),$$TEXMFLOCAL)
INSTALLTEXMF :=
endif
endif
ifeq ($(INSTALLTEXMF),)
INSTALLTEXMF = $(shell kpsewhich -expand-var='$$TEXMFMAIN')
ifeq ($(INSTALLTEXMF),$$TEXMFMAIN)
INSTALLTEXMF :=
endif
endif
# ----------------------------------------------------------------------
# The directory, where to install *.cls, *.sty etc.
INSTALLCLSDIR ?= $(INSTALLTEXMF)/tex/latex$(KOMASCRIPTSUBDIR)
# ----------------------------------------------------------------------
# The directory, where to install generic *.tex files
INSTALLTEXDIR ?= $(INSTALLTEXMF)/tex/generic$(KOMASCRIPTSUBDIR)
# ----------------------------------------------------------------------
# The directory, where to install documentation
INSTALLDOCDIR ?= $(INSTALLTEXMF)/doc/latex$(KOMASCRIPTSUBDIR)
# ----------------------------------------------------------------------
# The directory, where to install the sources
INSTALLSRCDIR ?= $(INSTALLTEXMF)/source/latex$(KOMASCRIPTSUBDIR)
# ----------------------------------------------------------------------
# The directory, where to install demos
INSTALLDEMODIR ?= $(INSTALLDOCDIR)/demo
# ----------------------------------------------------------------------
# Extensions of files which are generated for generation
CLEANEXTS = *.aux *.bbl *.blg *.glg *.glo *.gls *.glx *.idx \
*.ilg *.ind *.lof *.log *.lot *.out *.toc \
*.toc[0-9] *.toc[0-9][0-9]
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# The programms/commands, which are used
LATEX = pdflatex
NONSTOPMODE = \\nonstopmode
BATCHMODE = \\batchmode
DVIOUTPUT = \\pdfoutput=0\\let\\pdfoutput\\undefined\\input
PDFOUTPUT = \\pdfoutput=1\\input
MKINDEX = mkindex
TEXUNPACK = tex
SILENT = @
RM = rm -f
SRM = $(SILENT)$(RM)
RMDIR = rm -fr
SRMDIR = $(SILENT)$(RMDIR)
CP = cp -f
SCP = $(SILENT)$(CP)
CPALL = cp -af
SCPALL = $(SILENT)$(CPALL)
CD = cd
SCD = $(SILENT)$(CP)
SYMLINK = ln -sf
SSYMLINK = $(SILENT)$(SYMLINK)
INSTALL = install -m 644
SINSTALL = $(SILENT)$(INSTALL)
INSTALLEXECUTABLE = install -m 744
SINSTALLEXECUTABLE = $(SILENT)$(INSTALLEXECUTABLE)
MKDIR = install -m 755 -d
SMKDIR = $(SILENT)$(MKDIR)
MV = mv -f
SMV = $(SILENT)$(MV)
ECHO = echo
SECHO = $(SILENT)$(ECHO)
LL = ls -l
SLL = $(SILENT)$(LL)
TARGZ = tar zc -f
STARGZ = $(SILENT)$(TARGZ)
UNTARGZ = tar zx -f
SUNTARGZ = $(SILENT)$(UNTARGZ)
TARBZ = tar jc -f
STARBZ = $(SILENT)$(TARBZ)
ZIP = zip -r9qy
SZIP = $(SILENT)$(ZIP)
UNZIP = unzip -q
SUNZIP = $(SILENT)$(UNZIP)
GREP = grep
CKSUM = md5sum
HEAD = head -n
ISODATE = `date -I`
MKTEXLSR = mktexlsr $(INSTALLTEXMF)
# ----------------------------------------------------------------------
# ======================================================================
# Do not copy and change any of the following lines:
# ======================================================================
# ----------------------------------------------------------------------
# Loading Makefile.cfg if it exists.
# Don't
-include Makefile.cfg
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Do all variable tests
test_baseinit:
ifndef INSTALLTEXMF
$(error You have to define variable INSTALLTEXMF at Makefile.cfg!)
endif
$(SMKDIR) $(INSTALLTEXMF)
ifdef INSTALLSRCDIR
$(SMKDIR) $(INSTALLSRCDIR)
else
$(warning Sources will not be installed!)
endif
ifdef INSTALLDOCDIR
$(SMKDIR) $(INSTALLDOCDIR)
else
$(warning Documentation will not be installed!)
endif
#ifdef INSTALLDEMODIR
# $(SMKDIR) $(INSTALLDEMODIR)
#else
# $(warning Demos will not be installed!)
#endif
ifdef INSTALLCLSDIR
$(SMKDIR) $(INSTALLCLSDIR)
else
$(warning Classes, Packages, etc. will not be installed!)
endif
ifdef VERBOSE
$(SECHO) ============================================================
$(SECHO) Makefile.baseinit: variables and their values:
$(SECHO) " INSTALLTEXMF =$(INSTALLTEXMF)"
$(SECHO) " INSTALLSRCDIR =$(INSTALLSRCDIR)"
$(ECHO) " INSTALLTEXDIR =$(INSTALLTEXDIR)"
$(SECHO) " INSTALLDOCDIR =$(INSTALLDOCDIR)"
$(SECHO) " INSTALLDEMODIR=$(INSTALLDEMODIR)"
$(SECHO) " INSTALLCLSDIR =$(INSTALLCLSDIR)"
$(SECHO) " TEXINPUTS =$(TEXINPUTS)"
$(SECHO) " CLEANEXTS =$(CLEANEXTS)"
$(SECHO) ============================================================
endif
# ----------------------------------------------------------------------
|