blob: 222a4f34bbe4fd9ad8e8880975537cdd4c08ac7b (
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
|
TARGET=disser
TEXMF=/usr/share/texmf
DESTDIR=$(TEXMF)/tex/latex/$(TARGET)
DOCDIR=$(TEXMF)/doc/latex/$(TARGET)
LATEX=latex
INSTFILES=*.cls *.rtx
DOCFILES=$(TARGET).dvi
CLEANFILES=$(INSTFILES) *.log *.out *.aux *.dvi *.idx *.glo *.toc *.bak *.bbl *.blg
all: *.cls doc
install: all
mkdir -p $(DESTDIR)
mkdir -p $(DOCDIR)
cp $(INSTFILES) $(DESTDIR)
cp $(DOCFILES) $(DOCDIR)
%.cls: %.ins
$(LATEX) $<
doc: $(TARGET).dvi
$(TARGET).dvi: $(TARGET).dtx
$(LATEX) $<
$(LATEX) -src-specials $<
clean:
rm -f $(CLEANFILES)
|