forked from choderalab/ambermini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (41 loc) · 1.1 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
include config.h
ifeq ($(OS),Windows_NT)
WRAPPER_SFX=.bat
else
WRAPPER_SFX=
endif
PROGS=antechamber$(WRAPPER_SFX) acdoctor$(SFX) am1bcc$(SFX) antechamber_pvt$(SFX) \
atomtype$(SFX) bondtype$(SFX) charmmgen$(SFX) database$(SFX) espgen$(SFX) \
parmcal$(SFX) parmchk$(WRAPPER_SFX) parmchk2$(WRAPPER_SFX) prepgen$(SFX) \
residuegen$(SFX) sqm$(SFX) teLeap$(SFX) tleap$(WRAPPER_SFX) translate$(SFX) \
parmchk_pvt$(SFX) parmchk2_pvt$(SFX)
all: prep libs
$(MAKE) antechamber
$(MAKE) leap
$(MAKE) sqm
install: all
$(MKDIR) -p $(PREFIX)/bin $(PREFIX)/share
cd bin && mv $(PROGS) $(PREFIX)/bin
cp -r share/amber/dat $(PREFIX)
prep:
$(MKDIR) -p bin
antechamber::
cd antechamber && $(MAKE) install
leap::
cd leap && $(MAKE) install
sqm::
cd sqm && $(MAKE) install
libs::
cd cifparse && $(MAKE) install
cd blas && $(MAKE) install
cd lapack && $(MAKE) install
cd arpack && $(MAKE) install
clean:
cd antechamber && $(MAKE) clean
cd leap && $(MAKE) clean
cd sqm && $(MAKE) clean
cd lib && $(MAKE) clean
cd cifparse && $(MAKE) clean
uninstall:
cd $(PREFIX)/bin && rm -f $(PROGS)
$(RM) -fr $(PREFIX)/dat