aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: dadc3b59b2776b5d75431fec3a9097dbd6b01e47 (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
# Makefile for documentation
# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/doc/Makefile,v 1.7 2003-07-31 17:30:20 jthorn Exp $

#
# ***** main targets *****
# default	latex & dvips everything
# bib		bibtex everything
# clean		remove all machine-generated files
#
# ***** targets for rebuilding figures in the thorn guide *****
# 3patch-cactus		run Cactus to generate the data file for the
#			3patch figure
# 3patch-gnuplot	run gnuplot to generate the postscript file
#			for the 3patch figure
#

#
# Note this Makefile always re-TeXs things, even if the .tex files
# haven't changed (and similarly for dvips); this ensures that changes
# to macros, included stuff from other directories, etc, get "used".
# To implement this, we declare the .dvi and .ps files as "PHONY".
#

###############################################################################

#
# ***** main targets *****
#

.PHONY	: default
default	: ps

.PHONY	: ps
ps	: dvi
	dvips -f <documentation.dvi >documentation.ps

.PHONY	: dvi
dvi	:
	latex documentation

.PHONY	: bib
bib	:
	bibtex documentation

.PHONY	: clean
clean	:
	-rm *.dvi *.ps *.aux *.bbl *.log *.blg

###############################################################################

#
# ***** targets for rebuilding figures in the thorn guide *****
#

.PHONY		: 3patch-cactus
3patch-cactus	:
	cactus_test-ahfinderdirect 3patch.par 2>&1 | tee 3patch.log

.PHONY		: 3patch-gnuplot
3patch-gnuplot	:
	gnuplot 3patch.gnuplot