-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
123 lines (89 loc) · 2.97 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
.NOTPARALLEL:
default: build/make.inc all
all: serial mpi
build/make.inc:
perl ./setup.pl
include build/make.inc
serial:
cd build/serial; $(MAKE)
mpi:
cd build/mpi; $(MAKE)
debug:
cd build/debug; $(MAKE)
test::
cd test/; $(MAKE) summary
doc: spacegroupdoc stateconvertdoc stateinfodoc inputdoc excitingfuncdoc Splitt_inputdoc speciesdoc
excitingfuncdoc::
$(MAKE) -f build/Make.common doc
spacegroupdoc::
cd src/spacegroup; $(MAKE) doc;\
mv spacegroup.pdf ../../docs/spacegroup
xsltproc xml/schema/schemaexpand.xsl xml/schema/symmetries.xsd> xml/sgroupinput.xsd
cd docs/spacegroup; \
xsltproc --stringparam importancelevels "spacegroup" ../../xml/schematolatex.xsl ../../xml/sgroupinput.xsd > spacegroupinput.tex; \
xsltproc --stringparam importancelevels "spacegroup" ../../xml/schematowikidot.xsl ../../xml/sgroupinput.xsd > ../../xml/schema/wiki/spacegroup ;\
pdflatex spacegroupinput.tex; \
pdflatex spacegroupinput.tex; \
speciesdoc::
cd docs/species;\
xsltproc --stringparam importancelevels "spacegroup" ../../xml/schematolatex.xsl ../../xml/species.xsd > species.tex;\
pdflatex species.tex;pdflatex species.tex;
expandedschema::
xsltproc xml/schema/schemaexpand.xsl xml/schema/input.xsd >xml/excitinginput.xsd ;\
inputdoc::expandedschema
cd docs/exciting/;\
xsltproc --stringparam importancelevels "essential expert" ../../xml/schematolatex.xsl ../../xml/excitinginput.xsd >excitinginput.tex;\
xsltproc --stringparam importancelevels "essential expert" ../../xml/schematowikidot.xsl ../../xml/excitinginput.xsd >inputref.wikidot;\
pdflatex excitinginput.tex;\
pdflatex excitinginput.tex
Splitt_inputdoc::
cd xml/schema && $(MAKE)
inputdocwiki:xml/schema/*.xsd
cd xml/schema; $(MAKE)
stateconvertdoc::
cd src/stateconvert; $(MAKE) doc;\
mv stateconvert.pdf ../../docs/stateconvert
stateinfodoc::
cd src/stateinfo; $(MAKE) doc;\
mv stateinfo.pdf ../../docs/stateinfo
eos::
cd src/eos; $(MAKE)
spacegroup::
cd src/spacegroup; $(MAKE)
stateinfo::
cd src/stateinfo; $(MAKE)
stateconvert::
cd src/stateconvert; $(MAKE)
species::
cd src/species; $(MAKE)
libs:
cd build/serial; $(MAKE) libs
clean:
cd build/serial; $(MAKE) clean cleanlibs
cd build/mpi; $(MAKE) clean cleanlibs
cd build/smp; $(MAKE) clean cleanlibs
cd build/debug; $(MAKE) clean cleanlibs
cd build/mpiandsmp; $(MAKE) clean cleanlibs
cd src/eos; $(MAKE) clean
cd src/spacegroup; $(MAKE) clean
cd src/species; $(MAKE) clean
cd src/src_vdwdf; $(MAKE) clean
cd src/stateinfo; $(MAKE) clean
cd src/stateconvert; $(MAKE) clean
cd src/leblaiklib; $(MAKE) clean
rm -f *.o *.mod *~ fort.* ifc* *.gcno *.exe exdg.*
rm -f interfaces/*
rm -f docs/exciting/*
rm -f docs/spacegroup/*
cd test; $(MAKE) cleantests
libxcclean:
cd src/libXC && make clean
tgz::doc #libxcclean
tar --exclude-from=".gitignore" --transform 's,^,/exciting/,' -c -v -f ./exciting.tar *
gzip -f --best ./exciting.tar
du -h ./exciting.tar.gz
tidy:
perl setup.pl tidy $(MAKE)
vdwdf:
cd src/src_vdwdf
$(MAKE)