File: Makefile

package info (click to toggle)
tetex-src 3.0.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 122,292 kB
  • ctags: 2,709
  • sloc: makefile: 2,323; perl: 1,820; sh: 1,378; lisp: 448; python: 335; xml: 175; sed: 138; ansic: 138; yacc: 52
file content (47 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download | duplicates (4)
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
RM=rm -f
SHELL=sh
VERSION=3.2
FILES=README ChangeLog Makefile geometry.dtx geometry.ins manual.pdf gtest.tex
JUNKS=*.aux *.toc *.idx *.drv *.dvi *.log *.lof *.ist *.ilg *.ind *.out

unpack:
	latex geometry.ins
	@echo '**************************************'
	@echo ' To make geomtery documentation,      '
	@echo ' % make manual                        '
	@echo ' or                                   '
	@echo ' % make doc   (for full documentation)'
	@echo '**************************************'

all: unpack doc manual

geometry.drv: unpack
manual.drv: unpack

doc: geometry.drv
	latex geometry.drv
	latex geometry.drv
	latex geometry.drv

manual: manual.drv
	-$(RM) manual.aux
	pdflatex manual.drv
	pdflatex manual.drv
	pdflatex manual.drv

test: unpack
	-cp geometry.sty geometry.cfg test
	@echo
	@(cd test; for f in gtest*tex; do latex $$f; done)
	@echo
	@echo "--- Summary of Tests ---"
	@(cd test; grep -h Test gtest*.log)
	@echo "-------------------------"

pack: clean
	-(cd ..; tar cvfz geometry-$(VERSION).tgz geometry-$(VERSION))

clean:
	@$(RM) $(JUNKS) geometry.sty geometry.cfg *~ \#*
	@(cd test; $(RM) $(JUNKS) geometry.sty geometry.cfg *~ \#*)
	@echo The current and test directories have been cleaned up.