summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/footnpag/Makefile
blob: 9d047c22091a5925900cc2607ff443939be85c65 (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
# $Id: Makefile,v 2.1 1995/08/04 02:04:08 schrod Exp $
#----------------------------------------------------------------------

default:: install


#
# installation
#

# root of TDS compliant installation

    TEXMF = /usr/local/lib/texmf

# installation target directories
# (No need to change here for TDS installations.)

    LATEX = $(TEXMF)/tex/latex
    FOOTNPAG = $(LATEX)/misc

    LATEX_DOC = $(TEXMF)/doc/latex
    FOOTNPAG_DOC = styles


# installation actions

.PHONY:	install

install:: $(LATEX) $(LATEX_DOC)
	test -d $(FOOTNPAG)  ||  mkdir $(FOOTNPAG)
	cp *.sty $(FOOTNPAG)
	cd $(LATEX_DOC) ; \
		if [ ! -d $(FOOTNPAG_DOC) ] ; \
		   then	d=`echo $(FOOTNPAG_DOC) | sed 's:/.*::'` ; \
			test -d $$d  ||  mkdir $$d ; \
			test -d $(FOOTNPAG_DOC)  ||  mkdir $(FOOTNPAG_DOC) ; \
		fi
	cp *.dvi $(LATEX_DOC)/$(FOOTNPAG_DOC)

$(LATEX):
	@echo "You don't have a LaTeX styles directory (tree)." >&2
	@exit 1

$(LATEX_DOC):
	@echo "You don't have a LaTeX documentation directory (tree)." >&2
	@exit 1



#
# management tasks
#

.PHONY:	export

export::
	cd src ; imkmf ; make export
	cp $(HOME)/Notes/Copying.gpl License
	pwd=`pwd` ; pwd=`suffix $$pwd /` ; cd .. ; \
	    gtar -czvf $$pwd.tar.gz \
		--exclude=CVS --exclude=.cvsignore --exclude=.rcsrc $$pwd ; \
	    cp $$pwd/README  $$pwd.README