-
Notifications
You must be signed in to change notification settings - Fork 11
/
makedeps.sh.in
34 lines (26 loc) · 1013 Bytes
/
makedeps.sh.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
#!/bin/sh
# compute dependencies for the PWscf directory tree
# make sure there is no locale setting creating unneeded differences.
export LC_ALL=C
QE_SOURCE=@qe_source@
DEPENDS="${QE_SOURCE}/include ${QE_SOURCE}/iotk/src
${QE_SOURCE}/Modules ${QE_SOURCE}/PW/src
${QE_SOURCE}/FFTXlib/src ${QE_SOURCE}/UtilXlib
${QE_SOURCE}/LAXlib ${QE_SOURCE}/upflib
${QE_SOURCE}/XClib"
cd src
${QE_SOURCE}/install/moduledep.sh $DEPENDS > make.depend
${QE_SOURCE}/install/includedep.sh $DEPENDS >> make.depend
# handle special cases
sed -i '/@\/cineca\/prod\/hpm\/include\/f_hpm.h@/d' make.depend
sed -i '/@iso_c_binding@/d;/@ifcore@/d' make.depend
sed -i '/@ieee_arithmetic@/d' make.depend
# handle FoX
sed -i "s|@fox_dom@|${QE_SOURCE}/FoX/finclude/fox_dom.mod|" make.depend
sed -i "s|@fox_wxml@|${QE_SOURCE}/FoX/finclude/fox_wxml.mod|" make.depend
# check for missing dependencies
if grep @ make.depend
then
echo WARNING: dependencies not found in directory 'src'
exit 1
fi