2014-04-03 01:45:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# usage:
|
|
|
|
# create_Makefile.sh MOs AOs Electrons
|
2014-04-07 00:39:18 +02:00
|
|
|
# Creates the Makefile. This command is supposed to be run in a
|
2014-04-03 13:59:51 +02:00
|
|
|
# module directory.
|
2014-04-03 01:45:22 +02:00
|
|
|
# Thu Apr 3 01:44:41 CEST 2014
|
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
2014-04-03 13:59:51 +02:00
|
|
|
then
|
2015-03-25 23:03:51 +01:00
|
|
|
print "The QPACKAGE_ROOT environment variable is not set."
|
|
|
|
print "Please reload the quantum_package.rc file."
|
|
|
|
exit -1
|
2014-04-03 13:59:51 +02:00
|
|
|
fi
|
2015-03-25 23:03:51 +01:00
|
|
|
source ${QPACKAGE_ROOT}/scripts/qp_include.sh
|
2014-04-03 01:45:22 +02:00
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
check_current_dir_is_module
|
2014-04-03 01:45:22 +02:00
|
|
|
|
2015-03-25 23:03:51 +01:00
|
|
|
cat << EOF > Makefile
|
2014-04-03 01:45:22 +02:00
|
|
|
# Define here all new external source files and objects.Don't forget to prefix the
|
|
|
|
# object files with IRPF90_temp/
|
|
|
|
SRC=
|
|
|
|
OBJ=
|
|
|
|
|
2014-04-03 01:50:22 +02:00
|
|
|
include \$(QPACKAGE_ROOT)/src/Makefile.common
|
2014-04-03 01:45:22 +02:00
|
|
|
EOF
|
|
|
|
|
|
|
|
|