forked from jtv3/OCEAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (55 loc) · 1.69 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
# Master Makefile to compile and install all the programs required to run
# OCEAN. Please, don't change anything here, add all definitions to the
# Makefile.arch file
include Makefile.arch
SCRIPTS =
AUX = Version Header Makefile.arch
AUX_EXE = $(ABINIT_EXE) $(CUT3D_EXE) $(PW_EXE) $(PP_EXE)
all:
perl append_git.pl
cd Common; make
cd zbridge; make
cd Modules; make
cd DFT; make
cd PREP; make
cd OPF; make
cd SCREEN; make
cd CNBSE; make
cd INTERPOLATE; make
cd OCEAN2; make
cd POST; make
clean:
cd Common; make clean
cd Modules; make clean
cd DFT; make clean
cd PREP; make clean
cd SCREEN; make clean
cd OPF; make clean
cd CNBSE; make clean
cd zbridge; make clean
cd INTERPOLATE; make clean
cd OCEAN2; make clean
install:
mkdir -p $(INSTDIR)
cp $(SCRIPTS) $(AUX) $(INSTDIR)
cp $(AUX_EXE) $(INSTDIR)
cd Common; make install
cd DFT; make install
cd PREP; make install
cd SCREEN; make install
cd OPF; make install
cd CNBSE; make install
cd zbridge; make install
cd INTERPOLATE; make install
cd OCEAN2; make install
cd POST; make install
cd PSP; make install
chmod u+x $(INSTDIR)/*.pl
instdev:
for F in $(SCRIPTS) $(AUX); do ln -fs $(PWD)/$$F $(INSTDEVDIR); done;
cd Common; make "INSTDEVDIR = $(INSTDEVDIR)" instdev
cd DFT; make "INSTDEVDIR = $(INSTDEVDIR)" instdev
cd PREP; make "INSTDEVDIR = $(INSTDEVDIR)" instdev
cd CNBSE; make "INSTDEVDIR = $(INSTDEVDIR)" instdev
cd SCREEN; make "INSTDEVDIR = $(INSTDEVDIR)" instdev
chmod u+x $(INSTDEVDIR)/*.pl