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
|
SUBFLOATDIR=subfloat
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/subfloat
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/subfloat
VERSION=`grep '^\\\\def\\\\fileversion' subfloat.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'`
.SUFFIXES: .sty .ins .dtx .dvi .ps
.ins.sty:
latex $<
.dtx.dvi:
latex $<
latex $<
makeindex -s gind.ist $(*D)/$(*F)
makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
latex $<
.dvi.ps:
dvips -o $(*D)/$(*F).ps $(*D)/$(*F)
all: subfloat.sty subfloat.dvi ausgabe
subfloat: subfloat.sty
clean:
@-rm -f subfloat.{glo,gls,idx,ilg,ind,aux,log,toc}
@-rm -f *~
distclean: clean
@-rm -f subfloat.{sty,dvi,ps}
tar: all clean
echo Lege subfloat.tar.gz an
-rm -f subfloat-*.tar.gz
tar czCf .. subfloat-$(VERSION).tar.gz \
$(SUBFLOATDIR)/README $(SUBFLOATDIR)/Makefile \
$(SUBFLOATDIR)/subfloat.{dtx,ins,dvi} \
$(SUBFLOATDIR)/install.sh \
$(SUBFLOATDIR)/subfloat.xml $(SUBFLOATDIR)/ChangeLog
zip: all clean
-@rm -f subfloat-$(VERSION).zip
mkdirhier tex/latex/subfloat
mkdirhier doc/latex/subfloat
mkdirhier source/latex/subfloat
mv subfloat.sty tex/latex/subfloat
cp subfloat.{dtx,ins,xml} Makefile source/latex/subfloat
cp ChangeLog README subfloat.dvi doc/latex/subfloat
zip -r subfloat-$(VERSION).zip tex doc source
rm -r tex/ doc/ source/
install: all
if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
install -m622 subfloat.sty $(INSTALLDIR)
install -m622 subfloat.dvi $(DOCDIR)
texhash
ausgabe:
@echo "Please copy subfloat.sty to a directory"
@echo "in the LaTeX search path"
tpm: all
mkdirhier texmf-local/tex/latex/subfloat
mkdirhier texmf-local/doc/latex/subfloat
mkdirhier texmf-local/source/latex/subfloat
cp subfloat.dtx subfloat.ins README Makefile texmf-local/source/latex/subfloat
cp README subfloat.dvi texmf-local/doc/latex/subfloat
cp subfloat.sty texmf-local/tex/latex/subfloat
@-rm -f subfloat.zip
zip -r subfloat texmf-local
rm -rf texmf-local
subfloat.sty: subfloat.ins subfloat.dtx
|