summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/Makefile.unx
blob: 414293e93b06a56b85781101c32e618788883dc0 (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

########################################################################
#   Start of customization section
########################################################################

# The directory where all runtime files reside
DESTDIR=

# The directory where the format files reside
FORMATDIR=

######### Edit the following only if you want to move *.fd or *.ist
######### to a different place.

# The directory where the .fd files reside:
FDDIR=$(DESTDIR)

# The directory where class and package files reside:
INPUTDIR=$(DESTDIR)

# The directory where the makeindex style files reside
ISTDIR=$(DESTDIR)

########################################################################
#   End of customization section
########################################################################

FORMAT=latex


default:
	@if test ! "${DESTDIR}" -o ! "$(FORMATDIR)" ; then \
	  echo "Destination directories not set." ; \
	  echo "Please edit the Makefile first!" ; \
	  exit 1 ; \
	else \
	  make format ; \
	fi


format:	$(FORMAT).fmt

$(FORMAT).fmt:	$(FORMAT).ltx
	initex $(FORMAT).ltx


install: $(FORMAT).fmt
	cp -i $(FORMAT).fmt $(FORMATDIR)
	cp -i *.fd $(FDDIR)
	cp -i *.cls *.clo *.sty *.def *.tex $(INPUTDIR)
	cp -i *.ist $(ISTDIR)

clean:
	rm $(FORMAT).fmt
	rm *.dvi *.log *.aux *.glo *.idx *.ind *.gls *.lof *.lot *.toc