File: main.aap

package info (click to toggle)
xmds-doc 0~svn.1884-3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 8,336 kB
  • ctags: 192
  • sloc: makefile: 135; python: 55
file content (95 lines) | stat: -rw-r--r-- 2,181 bytes parent folder | download | duplicates (3)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# This is the main file for generating the handcrafted documentation
# for xmds.  To use this file, the program aap must be installed.
# If it is not installed go to http://www.a-a-p.org/ and install
# the relevant software.

# $Id: main.aap 1195 2006-12-18 13:00:35Z paultcochrane $

# generating the handcrafted docs

help:
	:print To process this file, merely run the command:
	:print   aap
	:print and all of the documentation will be built from the sources
	:print The documentation output is:
	:print pdf, html and source tarball
	:print 
	:print To just produce the pdf, use:
	:print   aap xmds_doc.pdf
	:print To just produce the html, use:
	:print   aap xmds_doc.html
	:print To just produce the source tarball, use:
	:print   aap xmds_doc.tar.gz
	

:print Executing the main aap file

TexFiles = abstract.tex
	develAndProgStructure.tex
	extraFeatures.tex
	functionality.tex
	gpl.tex
	intro.tex
	languageReference.tex
	loadxsil.tex
	misc_defs.tex
	moreExamples.tex
	numModellingTheory.tex
	outlook.tex
	stochasticSimsAndMPI.tex
	titlepage.tex
	tutFromScratch.tex
	tutTemplateStart.tex
	workedExample.tex
	xmds_defs.tex
	xmds_doc.tex
	xmds_doc.bib
	xsil.tex
	xsil2graphics.tex

StyFiles = apsrev.bst
	book.cls
	ccaption.sty
	fancyhdr.sty
	listings.sty
	listings.cfg
	lstdoc.sty
	lstlang1.sty
	lstlang2.sty
	lstlang3.sty
	lstmisc.sty
	lstpatch.sty
	quotchap.sty
	
EpsFigs = `expand2string("figures/*.eps")`
PdfFigs = `sufreplace(".eps", ".pdf", EpsFigs)`

webdir = /dev/null
	
all: xmds_doc.pdf xmds_doc.html xmds_doc.tar.gz

:rule %.pdf : %.eps
	:sys epstopdf $source

pdf_figs: $EpsFigs
	:print Generating the pdf figures from the eps figures

xmds_doc.pdf: $TexFiles $PdfFigs 
	:print Generating the pdf...
	:sys latex xmds_doc.tex
	:sys cp $target $webdir

xmds_doc.html: $TexFiles
	:print Generating the html...
        :sys mkdir -p html
	:sys latex2html xmds_doc.tex

xmds_doc.tar.gz: $TexFiles $EpsFigs $StyFiles
	:print Generating the documentation tarball...
	:sys mkdir xmds_doc
	:sys cp $TexFiles $StyFiles xmds_doc/
	:sys mkdir xmds_doc/figures
	:sys cp $EpsFigs xmds_doc/figures/
	:sys tar -cvzf $target xmds_doc
	:sys cp $target $webdir
	:sys rm -rf xmds_doc