-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.am
More file actions
168 lines (158 loc) · 7.32 KB
/
Copy pathMakefile.am
File metadata and controls
168 lines (158 loc) · 7.32 KB
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
SUBDIRS = ext src data test
EXTRA_DIST=README.MD Changelog.MD
AUTOMAKE_LIST=autom4te.cache \
config.h \
config.status \
configure \
depcomp \
install-sh \
missing \
Makefile \
Makefile.in \
aclocal.m4 \
config.h.in \
config.log \
stamp-h1 \
compile \
config.guess \
config.sub \
test-driver \
.swp
homepsd = $${HOME}
all-local: logo
@echo " "
@echo "*============================================================*"
@echo " 'make' finished now do 'make install' or 'sudo make install'"
@echo "*============================================================*"
@echo " "
logo:
@echo ""
@echo "*============================================================*"
@echo " ___ __ "
@echo " / __ \\ _____ __/ / "
@echo " / /_/ / / ___/ / __ / "
@echo " / ___ / (__ ) / /_/ / "
@echo " /_/ /____/ \\___ / "
@echo " "
@echo " Parallel finite element Solver for continuum Dynamics "
@echo " "
@echo "*============================================================*"
@echo ""
# ifeq ("x","y")
# THIS IS COMMENTED
# endif
install-exec-local:
@mkdir -p ${prefix}/include/psd
@echo " "
@echo "*============================================================*"
@echo " Finished installing PSD version $(VERSION)"
@echo "*============================================================*"
@echo " "
@echo "*============================================================*"
@echo " IMPORTANT: In order to test everthing is ok do 'make check'"
@echo "*============================================================*"
@echo ""
tutorials:
@echo "*============================================================*"
@echo ""
@echo " ## tutorials ## making directories "
@mkdir -p $${HOME}/PSD-tutorials/Meshes
@mkdir -p $${HOME}/PSD-tutorials
@mkdir -p $${HOME}/PSD-tutorials/elastodynamics
@mkdir -p $${HOME}/PSD-tutorials/soildynamics
@mkdir -p $${HOME}/PSD-tutorials/fracture-mechanics
@mkdir -p $${HOME}/PSD-tutorials/linear-elasticity
@mkdir -p $${HOME}/PSD-tutorials/elasto-plastic
@mkdir -p $${HOME}/PSD-tutorials/Doc
@mkdir -p $${HOME}/PSD-tutorials/Meshes/2D
@mkdir -p $${HOME}/PSD-tutorials/Meshes/3D
@echo " ## tutorials ## Copying meshes "
@cp ./data/meshes/2D/Geo-Files/Gmsh/*.msh $${HOME}/PSD-tutorials/Meshes/2D/.
@cp ./data/meshes/2D/Geo-Files/Gmsh/*.geo $${HOME}/PSD-tutorials/Meshes/2D/.
@cp ./data/meshes/3D/Geo-Files/*.msh $${HOME}/PSD-tutorials/Meshes/3D/.
@cp ./data/meshes/3D/Geo-Files/*.geo $${HOME}/PSD-tutorials/Meshes/3D/.
@cp ./etc/*.xyz $${HOME}/PSD-tutorials/Meshes/3D/.
@echo " ## tutorials ## Copying text "
@echo ""
@cp ./demos/elastodynamics/*.pdf $${HOME}/PSD-tutorials/elastodynamics/.
@cp ./demos/soildynamics/*.pdf $${HOME}/PSD-tutorials/soildynamics/.
@cp ./demos/linear-elasticity/*.pdf $${HOME}/PSD-tutorials/linear-elasticity/.
@cp ./demos/fracture-mechanics/*.pdf $${HOME}/PSD-tutorials/fracture-mechanics/.
@cp ./demos/elasto-plastic/*.pdf $${HOME}/PSD-tutorials/elasto-plastic/.
@echo " tutorials installed at : " $${HOME}/PSD-tutorials/;
@echo " "
@echo "*============================================================*"
@echo " Finished installing PSD version $(VERSION) tutorials"
@echo "*============================================================*"
@echo ""
install-devel:
@echo ""
@echo "*============================================================*"
@echo " # Making required directories "
@mkdir -p $${HOME}/PSD-devel
@mkdir -p $${HOME}/PSD-devel/Meshes
@mkdir -p $${HOME}/PSD-devel/PSD_PreProcess-devel
@mkdir -p $${HOME}/PSD-devel/Meshes/2D
@mkdir -p $${HOME}/PSD-devel/Meshes/3D
@mkdir -p $${HOME}/PSD-devel/Plugins
@mkdir -p $${HOME}/PSD-devel/Solver
@mkdir -p $${HOME}/PSD-devel/Doc
@echo ""
@echo " # Copying meshes "
@cp ./data/meshes/2D/Geo-Files/*.msh $${HOME}/PSD-devel/Meshes/2D/.
@cp ./data/meshes/2D/Geo-Files/*.geo $${HOME}/PSD-devel/Meshes/2D/.
@cp ./data/meshes/3D/Geo-Files/*.msh $${HOME}/PSD-devel/Meshes/3D/.
@cp ./data/meshes/3D/Geo-Files/*.geo $${HOME}/PSD-devel/Meshes/3D/.
@cp ./etc/*.xyz $${HOME}/PSD-devel/Meshes/3D/.
@echo ""
@echo " # Copying PSD plugins/support-files "
@cp ./src/plugins/top-ii-vol/cpp/top-ii-vol.so $${HOME}/PSD-devel/Plugins/top-ii-vol.so
@cp ./src/plugins/go-fast-plugins/cpp/gofastplugins.so $${HOME}/PSD-devel/Plugins/gofastplugins.so
@cp ./src/plugins/go-fast-plugins/cpp/gofastplugins.cpp $${HOME}/PSD-devel/Plugins/gofastplugins.cpp
@cp ./src/plugins/petsc/cpp/PSD-PETSc.so $${HOME}/PSD-devel/Plugins/PSD-PETSc.so
@cp ./src/plugins/petsc/cpp/PSD-PETSc.cpp $${HOME}/PSD-devel/Plugins/PSD-PETSc.cpp
@cp ./src/plugins/paraview-output/cpp/PSD-iovtk.so $${HOME}/PSD-devel/Plugins/PSD-iovtk.so
@cp ./src/plugins/paraview-output/cpp/PSD-iovtk.cpp $${HOME}/PSD-devel/Plugins/PSD-iovtk.cpp
@cp ./src/ff-files/DDmacro.edp $${HOME}/PSD-devel/Plugins/DDmacro.edp
@cp ./src/ff-files/DDplotMacro.edp $${HOME}/PSD-devel/Plugins/DDplotMacro.edp
@cp ./src/ff-files/MacroTools.edp $${HOME}/PSD-devel/Plugins/MacroTools.edp
@cp ./src/ff-files/simulation-log.csv $${HOME}/PSD-devel/Solver/.
@echo ""
@echo " # Copying PSD PreProcessor and solver "
@cp ./src/psd-preprocessor/PSD_PreProcess $${HOME}/PSD-devel/Solver/PSD_PreProcess
@cp ./src/psd-solve/PSD_Solve $${HOME}/PSD-devel/Solver/PSD_Solve
@cp ./src/psd-preprocessor/*.cpp $${HOME}/PSD-devel/PSD_PreProcess-devel/.
@cp ./src/psd-preprocessor/*.hpp $${HOME}/PSD-devel/PSD_PreProcess-devel/.
@cp ./etc/Makefile-psd-preprocess-devel $${HOME}/PSD-devel/PSD_PreProcess-devel/Makefile
@echo ""
@echo " # Copying PSD documentation "
@echo "*============================================================*"
@echo ""
@cp ./man/*.html $${HOME}/PSD-devel/Doc/.
@cp ./man/*.pdf $${HOME}/PSD-devel/Doc/.
@cp ./man/*.png $${HOME}/PSD-devel/Doc/.
@echo " "
@echo "*============================================================*"
@echo " Finished installing PSD version $(VERSION) developers edition"
@echo "*============================================================*"
@echo ""
check-local:
@echo ""
@echo "*============================================================*"
@echo " 'make check' finished now do 'make install'"
@echo "*============================================================*"
@echo ""
clean-local:
@echo ""
@echo "*============================================================*"
@echo " Cleaning files in :"; pwd
@echo "*============================================================*"
@echo ""
rm -f *~ *.pdf *.html
distclean-local: clean-local
@echo ""
@echo "*============================================================*"
@echo " Cleaning maintainer mode"
@echo "*============================================================*"
@echo ""
rm -rf ${AUTOMAKE_LIST}