blob: 01f4c7e5f760d66df75952406a0a497d360f1f26 (
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
|
# Makefile for LGrind, a LaTeX prettyprinter
# $Id: Makefile,v 1.10 2000/12/27 21:42:37 mike Exp $
BASEDIR=/usr
#DEFSFILE=${HOME}/Work/lgrind/lgrindef
DEFSFILE=$(BASEDIR)/share/texmf/tex/latex/lgrind/lgrindef
TEXFILEDIR=$(BASEDIR)/share/texmf/tex/latex/lgrind
DOCDIR=$(BASEDIR)/doc/lgrind
INSTALL=install
SOURCES=lgrind.c lgutil.c regexp.c regexp.h lgrindef.c lgrindef.h retest.c v2lg.c
TEXFILES=lgrind.dtx lgrind.sty lgrind.ins
VERSION=3.66
DISTVERSION=lgrind-$(VERSION)
.PHONY: all install clean distribution lgrind
all: lgrind.sty lgrind.dvi lgrind
lgrind.sty: lgrind.dtx
latex lgrind.ins
lgrind.dvi: lgrind.dtx
latex lgrind.dtx
latex lgrind.dtx
lgrind:
cd source; \
make DEFSFILE=$(DEFSFILE) BASEDIR=$(BASEDIR) INSTALL=$(INSTALL) VERSION=$(VERSION)
clean:
rm -f lgrind.log
rm -f lgrind.aux
rm -f lgrind.dvi
rm -f lgrind.sty
rm -f lgrind.idx
rm -f lgrind.glo
rm -f doc-lgrind.lg
cd source; \
make clean
distribution: clean
mkdir $(DISTVERSION)
cp -r example $(DISTVERSION)
rm -rf $(DISTVERSION)/example/CVS
cp -r source $(DISTVERSION)
rm -rf $(DISTVERSION)/source/CVS
cp README FAQ lgrind.* lgrindef $(DISTVERSION)
sed -e "s/^#DEFSFILE/=DEFSFILE/;s/^DEFSFILE/#DEFSFILE/;s/^=DEFSFILE/DEFSFILE/"\
< Makefile >$(DISTVERSION)/Makefile
tar czf $(DISTVERSION).tar.gz $(DISTVERSION)
rm -r $(DISTVERSION)
install: all
$(INSTALL) -m 755 -d $(TEXFILEDIR)
$(INSTALL) -m 644 lgrind.sty $(TEXFILEDIR)
$(INSTALL) -m 755 -d $(DOCDIR)
$(INSTALL) -m 644 lgrind.dvi $(DOCDIR)
$(INSTALL) -m 644 lgrindef $(DEFSFILE)
cd source; \
make install BASEDIR=$(BASEDIR) INSTALL=$(INSTALL)
|