summaryrefslogtreecommitdiff
path: root/support/imaketex/Imakefile
blob: 248b51f06f63e7497a3db691ac9e5ce106bb9342 (plain)
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
/*
 *                     Imakefile for Imake-TeX
 *
 *         Copyright 1993 Rainer Klute, Dortmund University
 *              <klute@irb.informatik.uni-dortmund.de>
 *
 * $Id: Imakefile,v 1.0 1993/08/17 15:28:51 klute Exp klute $
 */

IMAKETEXVERSION = 1.00

#if ProjectX < 5
#include "X11R5.rules"
InstallNonExecFile(X11R5.rules,$(TEX_CONFIGDIR))
#endif


#include "Imake-TeX.cf"


#ifndef SedFileTarget
#define SedFileTarget(dst,src,script,deplist)				@@\
dst:: src deplist							@@\
	$(RM) $@							@@\
	sed script <src >$@
#endif /* SedFileTarget */


AllTarget(texmkmf.script TeX.tmpl)

CppScriptTarget(texmkmf.script,texmkmf.cpp,-DCONFIGDIRSPEC='"'"-I$(CONFIGDIR) -I$(TEX_CONFIGDIR)"'"',Imake-TeX.cf)
InstallScript(texmkmf,$(TEX_BINDIR))
clean::
	$(RM) texmkmf.script

SedFileTarget(TeX.tmpl,TeX.tmpl.sed, \
              -e 's#TEX_INPUTSDIR#$(TEX_INPUTSDIR)#g' \
              -e 's#TEX_CONFIGDIR#$(TEX_CONFIGDIR)#g', \
              Imake-TeX.cf)
InstallNonExecFile(TeX.tmpl,$(TEX_CONFIGDIR))

clean::
	$(RM) TeX.tmpl



#ifndef InstallImakeTex

SedFileTarget(Imake-TeX.tex,Imake-TeX.tex.sed, \
              -e 's/HAS_PSFIG/$(HAS_PSFIG)/' \
              -e 's/DOCUMENTATIONLANGUAGE/$(DOCUMENTATIONLANGUAGE)/' \
              -e 's/IMAKETEXVERSION/$(IMAKETEXVERSION)/', \
              Imake-TeX.cf)

includes:: Imake-TeX.tex

clean::
	$(RM) Imake-TeX.tex

#include "TeX.tmpl"
PaperFormatA4()
SimpleLatexBibtexIndexTarget(Imake-TeX,Paper.bib)

#endif /* InstallImakeTex */


#ifndef CompressedTarFileTarget
#define CompressedTarFileTarget(step,archive,files)			@@\
step:: archive.tar.z							@@\
archive.tar.z:: files							@@\
	$(MKDIRHIER) archive						@@\
	tar cf - files | (cd archive; tar xvf -)			@@\
	tar cvf - archive | gzip >archive.tar.gz			@@\
	$(RM) -r archive
#endif /* CompressedTarFileTarget */

CompressedTarFileTarget(tar,Imake-TeX-$(IMAKETEXVERSION),CHANGES Imake-TeX.cf Imake-TeX.tex.sed Imakefile Paper.bib README TeX.tmpl.sed UnidoLogo.eps X11R5.rules german.sty texmkmf.cpp ExamNormal/Imakefile ExamNormal/example1.tex ExamNormal/example2.tex ExamNormal/input1.tex ExamNormal/input2.tex ExamSimple/Imakefile ExamSimple/example.tex)