-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
111 lines (94 loc) · 3.13 KB
/
Makefile.in
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
# @configure_input@
# Package-related substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
# Prefix-related substitution variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
# Tool-related substitution variables
FC = @FC@
DEFS = @DEFS@
LIBS = @LIBS@
FCFLAGS = @FCFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM= @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
# VPATH-related substitution variables
top_builddir = @top_builddir@
builddir = @builddir@
srcdir = @srcdir@
VPATH = @srcdir@
# Fireball substitution variables
THEORY = @THEORY@
METHOD = @METHOD@
XC = @XC@
OPENMP = @OPENMP@
MPI = @MPI@
DEBUG = @DEBUG@
MODE = @MODE@
MACHINE = @MACHINE@
COMPILER = @COMPILER@
LINALG = @LINALG@
all:
$(MAKE) -C src lightning-grid.x
clean check install uninstall:
$(MAKE) -C src $@
cleanall:
$(MAKE) -C src $@
distclean: cleanall
rm -rf autom4te.cache config.log config.status config.h
rm -rf Makefile
rm -rf src/Makefile
rm -rf src/*/Makefile
rm -rf $(distdir).tar.gz
dist: $(distdir).tar.gz
$(distdir).tar.gz: FORCE $(distdir)
tar chof - $(distdir) | gzip -9 -c >$(distdir).tar.gz
rm -rf $(distdir)
$(distdir): cleanall
mkdir -p $(distdir)/src
cp $(srcdir)/configure $(distdir)
cp $(srcdir)/config.h.in $(distdir)
cp $(srcdir)/install-sh $(distdir)
cp $(srcdir)/Makefile.in $(distdir)
cp $(srcdir)/src/Makefile.in $(distdir)/src
cp -rL $(srcdir)/src/a.GLOBAL $(distdir)/src
cp -rL $(srcdir)/src/b.FUNCTIONS $(distdir)/src
cp -rL $(srcdir)/src/c.SYSTEM $(distdir)/src
cp -rL $(srcdir)/src/d.FUNCTIONS_EXTRA $(distdir)/src
cp -rL $(srcdir)/src/e.FDATA $(distdir)/src
cp -rL $(srcdir)/src/g.XC_FUNCTIONALS $(distdir)/src
cp -rL $(srcdir)/src/h.SOLVESH $(distdir)/src
cp -rL $(srcdir)/src/i.GRID $(distdir)/src
cp -rL $(srcdir)/src/j.ASSEMBLERS $(distdir)/src
cp -rL $(srcdir)/src/l.SCF $(distdir)/src
cp -rL $(srcdir)/src/o.OUTPUT $(distdir)/src
cp -rL $(srcdir)/src/p.THEORY $(distdir)/src
cp -rL $(srcdir)/src/u.UTIL $(distdir)/src
cp -rL $(srcdir)/src/MACHINES $(distdir)/src
cp -rL $(srcdir)/src/include $(distdir)/src
cp -rL $(srcdir)/src/libs $(distdir)/src
cp -rL $(srcdir)/src/x.DRIVERS $(distdir)/src
rm -rf $(distdir)/Makefile
rm -rf $(distdir)/src/Makefile
rm -rf $(distdir)/src/*/Makefile
distcheck: $(distdir).tar.gz
gzip -cd $+ | tar xvf -
cd $(distdir); ./configure FC=@FC@ --enable-THEORY=@THEORY@ --enable-DEBUG --enable-LINALG=LAPACK
$(MAKE) -C $(distdir) all check
$(MAKE) -C $(distdir) DESTDIR=$${PWD}/$(distdir)/_inst install uninstall
$(MAKE) -C $(distdir) clean
rm -rf $(distdir)
@echo "*** Package $(distdir).tar.gz is ready for distribution."
Makefile: Makefile.in config.status
./config.status $@
config.status: configure
./config.status --recheck
FORCE:
-rm -rf $(distdir) &>/dev/null
-rm $(distdir).tar.gz &>/dev/null
.PHONY: FORCE all clean check dist distcheck install uninstall