-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
176 lines (155 loc) · 4.82 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
ifndef ROOTDIR
ROOTDIR=.
endif
REALMAKEFILE=../Makefile.2
default: wannier post
all: wannier lib post w90chk2chk
doc: thedoc
serialobjs: objdir
(cd $(ROOTDIR)/src/obj && $(MAKE) -f $(REALMAKEFILE) serialobjs)
w90chk2chk: objdir serialobjs
(cd $(ROOTDIR)/src/obj && $(MAKE) -f $(REALMAKEFILE) w90chk2chk)
wannier: objdir serialobjs
(cd $(ROOTDIR)/src/obj && $(MAKE) -f $(REALMAKEFILE) wannier)
lib: objdir serialobjs
(cd $(ROOTDIR)/src/obj && $(MAKE) -f $(REALMAKEFILE) libs)
w90pov:
(cd $(ROOTDIR)/utility/w90pov && $(MAKE) )
w90vdw:
(cd $(ROOTDIR)/utility/w90vdw && $(MAKE) )
libs: lib
post: objdirp
(cd $(ROOTDIR)/src/objp && $(MAKE) -f $(REALMAKEFILE) post)
clean:
cd $(ROOTDIR) && rm -f *~
cd $(ROOTDIR) && rm -f src/*~
@( cd $(ROOTDIR) && if [ -d src/obj ] ; \
then cd src/obj && \
$(MAKE) -f $(REALMAKEFILE) clean && \
cd ../ && rm -rf obj ; \
fi )
@( cd $(ROOTDIR) && if [ -d src/objp ] ; \
then cd src/objp && \
$(MAKE) -f $(REALMAKEFILE) clean && \
cd ../ && rm -rf objp ; \
fi )
$(MAKE) -C $(ROOTDIR)/tests clean
$(MAKE) -C $(ROOTDIR)/doc/user_guide clean
$(MAKE) -C $(ROOTDIR)/doc/tutorial clean
$(MAKE) -C $(ROOTDIR)/utility/w90pov clean
veryclean: clean
cd $(ROOTDIR) && rm -f wannier90.x postw90.x libwannier.a
cd $(ROOTDIR)/doc && rm -f user_guide.pdf tutorial.pdf
cd $(ROOTDIR)/doc/user_guide && rm -f user_guide.ps
cd $(ROOTDIR)/doc/tutorial && rm -f tutorial.ps
thedoc:
$(MAKE) -C $(ROOTDIR)/doc/user_guide
$(MAKE) -C $(ROOTDIR)/doc/tutorial
dist:
@(cd $(ROOTDIR) && tar -cz --transform='s,^\./,wannier90-2.0.0/,' -f wannier90-2.0.0.tar.gz \
./src/*.?90 \
./src/postw90/*.?90 \
./tests/run_test.pl \
./tests/test*/wannier.win \
./tests/test*/des.dat \
./tests/test*/wannier.eig \
./tests/test*/wannier.?mn \
./tests/test*/stnd* \
./examples/README \
./examples/example01/UNK* \
./examples/*/*.win \
./examples/example0[2-4]/*.eig \
./examples/example0[1-4]/*.*mn \
./examples/example0[5-9]/*.scf \
./examples/example1[0-3]/*.scf \
./examples/example0[5-9]/*.nscf \
./examples/example1[0-3]/*.nscf \
./examples/example0[5-9]/*.pw2wan \
./examples/example1[0-3]/*.pw2wan \
./examples/example1[4-5]/defected/*.scf \
./examples/example1[4-5]/defected/*.nscf \
./examples/example1[4-5]/defected/*.win \
./examples/example1[4-5]/defected/*.pw2wan \
./examples/example1[4-5]/periodic/*.scf \
./examples/example1[4-5]/periodic/*.nscf \
./examples/example1[4-5]/periodic/*.win \
./examples/example1[4-5]/periodic/*.pw2wan \
./examples/example1[6-9]/*.scf \
./examples/example1[6-9]/*.nscf \
./examples/example1[6-9]/*.pw2wan \
./pseudo/*.UPF \
./pwscf/README \
./pwscf/v3.2.3/*.f90 \
./pwscf/v4.0/*.f90 \
./pwscf/v4.1/*.f90 \
./pwscf/v5.0/*.f90 \
./config/make.sys* \
./utility/*.pl \
./utility/PL_assessment/*.f90 \
./utility/PL_assessment/README \
./utility/w90vdw/w90vdw.f90 \
./utility/w90vdw/README \
./utility/w90vdw/doc/Makefile \
./utility/w90vdw/doc/w90vdw.tex \
./utility/w90vdw/examples/benzene_s_val/benzene_s_val.* \
./utility/w90vdw/examples/benzene_s_val/ref/benzene_s_val.* \
./utility/w90vdw/examples/benzene_s_cond/benzene_s_cond.* \
./utility/w90vdw/examples/benzene_s_cond/ref/benzene_s_cond.* \
./utility/w90pov/doc/*.tex \
./utility/w90pov/doc/*.pdf \
./utility/w90pov/doc/figs/*.png \
./utility/w90pov/src/*.f90 \
./utility/w90pov/src/*.c \
./utility/w90pov/examples/*/*.gz \
./utility/w90pov/examples/*/*.inp \
./utility/w90pov/examples/*/*.inc \
./utility/w90pov/examples/*/*.pov \
./utility/w90pov/examples/*/ref/*.png \
./utility/w90pov/README \
./utility/w90chk2chk/README \
./doc/*/*.tex \
./doc/*/*.eps \
./doc/*/*.fig \
./doc/user_guide.pdf \
./doc/tutorial.pdf \
./doc/wannier90.bib \
./*/Makefile \
./*/Makefile.2 \
./*/*/Makefile \
./Makefile \
./LICENCE \
./README* \
./CHANGE.log \
)
test: default
(cd $(ROOTDIR)/tests && $(MAKE) test )
dist-lite:
@(cd $(ROOTDIR) && tar -cz --transform='s,^\./,wannier90/,' -f wannier90.tar.gz \
./src/*.?90 \
./src/postw90/*.?90 \
./tests/run_test.pl \
./tests/test*/wannier.win \
./tests/test*/des.dat \
./tests/test*/wannier.eig \
./tests/test*/wannier.?mn \
./tests/test*/stnd* \
./config/* \
./*/Makefile \
./utility/*.pl \
./*/Makefile \
./*/Makefile.2 \
./*/*/Makefile \
./Makefile \
./LICENCE \
./README.* \
./CHANGE.log \
)
objdir:
@( cd $(ROOTDIR) && if [ ! -d src/obj ] ; \
then mkdir src/obj ; \
fi ) ;
objdirp:
@( cd $(ROOTDIR) && if [ ! -d src/objp ] ; \
then mkdir src/objp ; \
fi ) ;
.PHONY: wannier default all doc lib libs post clean veryclean thedoc dist test dist-lite objdir objdirp serialobjs