-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
66 lines (55 loc) · 1.24 KB
/
Makefile
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
#
# Makefile for LARCC framework
#
NAME = ImagesToLARModel
LANGUAGE = jl
BIBFILE = $(NAME).bib
IDIR = doc_src/tex/
ODIR = src/
DOCTEX = doc/tex/
DOCPDF = doc/pdf/
DOCW = doc/w/
TESTDIR = test/$(NAME)/
TESTFILES = TESTDIR/*.jl
all:
@echo building $(NAME)
make pdf
make clean
#open $(DOCPDF)$(NAME).pdf
@echo "Done."
exec:
cp $(IDIR)macros.tex macros.tex
cp $(IDIR)bib.bib $(BIBFILE)
cp -R $(IDIR)images .
cp $(IDIR)$(NAME).tex $(NAME).w
nuweb $(NAME).w
pdf: $(IDIR)$(NAME).tex
make exec
pdflatex $(NAME).tex
nuweb $(NAME).w
bibtex $(NAME)
pdflatex $(NAME).tex
pdflatex $(NAME).tex
html:
make pdf
rm -dfR $(NAME)/*
rm -dfR $(NAME)
mkdir $(NAME)
cp src/html/css.cfg $(NAME).cfg
makeindex $(NAME).tex
htlatex $(NAME).tex "$(NAME).cfg,TocLink,html,index=2,3"
mv -fv images $(NAME).html $(NAME).css $(NAME)
rm -fv $(NAME).* macros.tex
mv -fv $(NAME)*.* $(NAME)
if [ -d doc/html/$(NAME) ] ; then rm -R doc/html/$(NAME) ; fi
mv $(NAME) doc/html/
open doc/html/$(NAME)/$(NAME).html
tests: $(TESTFILES)
@echo $^
clean:
mv -fv $(NAME).tex $(NAME).bbl macros.tex $(DOCTEX)
mv -fv $(NAME).pdf $(DOCPDF)
mv -fv $(NAME).w $(DOCW)
if [ -d $(DOCTEX)images ] ; then rm -R $(DOCTEX)images ; fi
mv -fv images $(DOCTEX)
rm $(NAME).*