2014-04-03 01:45:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# usage:
|
|
|
|
# create_Makefile.sh MOs AOs Electrons
|
2014-04-03 13:59:51 +02:00
|
|
|
# Creates the Makefile . This command is supposed to be run in a
|
|
|
|
# module directory.
|
2014-04-03 01:45:22 +02:00
|
|
|
# Thu Apr 3 01:44:41 CEST 2014
|
|
|
|
|
2014-04-03 13:59:51 +02:00
|
|
|
MODULE=$(basename $PWD)
|
2014-04-03 01:45:22 +02:00
|
|
|
|
2014-04-03 13:59:51 +02:00
|
|
|
if [[ $MODULE == "src" ]]
|
|
|
|
then
|
|
|
|
echo "Error: This script should not be run in the src directory."
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-04-03 01:45:22 +02:00
|
|
|
|
|
|
|
cat << EOF > Makefile
|
|
|
|
default: all
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|