2003-12-02 23:47:00 +08:00
|
|
|
default :
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo 'to install, type at the shell prompt:'
|
2004-02-24 17:48:24 +08:00
|
|
|
@echo ' ./configure'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' make target'
|
|
|
|
@echo 'where target is one of the following:'
|
|
|
|
@echo ' pw basic code for scf, structure optimization, MD'
|
|
|
|
@echo ' fpmd FPMD code for Car-Parrinello MD'
|
|
|
|
@echo ' cp CP code: CP MD with ultrasoft pseudopotentials'
|
|
|
|
@echo ' ph phonon code'
|
|
|
|
@echo ' pp postprocessing programs'
|
2003-12-11 19:10:03 +08:00
|
|
|
@echo ' gamma Gamma-only version of phonon code'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' nc non collinear magnetic version of pw code'
|
|
|
|
@echo ' pwcond ballistic conductance'
|
|
|
|
@echo ' d3 third-order derivatives'
|
|
|
|
@echo ' tools misc tools for data analysis'
|
|
|
|
@echo ' upf utilities for pseudopotential conversion'
|
2004-01-29 02:14:17 +08:00
|
|
|
@echo ' pwall same as "make pw ph pp gamma nc pwcond d3 tools"'
|
|
|
|
@echo ' all same as "make pwall fpmd cp upf"'
|
2003-11-20 01:10:26 +08:00
|
|
|
@echo ' links creates links to executables in bin/'
|
|
|
|
@echo ' clean remove executables and objects'
|
|
|
|
@echo ' veryclean revert distribution to the original status'
|
|
|
|
@echo ' tar create a tarball of the source tree'
|
2004-02-20 04:10:15 +08:00
|
|
|
@echo ' tar-gui create a tarball of the GUI sources'
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-12-02 23:47:00 +08:00
|
|
|
pw : modules libs
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d PW ; then ( cd PW ; make all ) ; fi
|
2003-12-02 23:47:00 +08:00
|
|
|
fpmd : modules libs
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d FPMD; then ( cd FPMD; make all ) ; fi
|
2003-12-02 23:47:00 +08:00
|
|
|
cp : modules libs
|
2004-02-24 18:48:40 +08:00
|
|
|
if test -d CPV ; then ( cd CPV ; make all ) ; fi
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-12-02 23:47:00 +08:00
|
|
|
ph : pw
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d PH ; then ( cd PH ; make all ) ; fi
|
2003-12-02 23:47:00 +08:00
|
|
|
pp : pw
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d PP ; then ( cd PP ; make all ) ; fi
|
2003-12-02 23:47:00 +08:00
|
|
|
gamma : pw
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d Gamma;then ( cd Gamma; make all ); fi
|
2003-12-02 23:47:00 +08:00
|
|
|
nc : pw
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d PWNC; then ( cd PWNC; make all ) ; fi
|
2003-12-02 23:47:00 +08:00
|
|
|
pwcond : pw pp
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d PWCOND;then ( cd PWCOND; make all );fi
|
2003-12-02 23:47:00 +08:00
|
|
|
d3 : pw ph
|
2004-02-24 17:48:24 +08:00
|
|
|
if test -d D3 ; then ( cd D3 ; make all ) ; fi
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-12-02 23:47:00 +08:00
|
|
|
tools : libs
|
2004-02-24 18:19:54 +08:00
|
|
|
if test -d pwtools ; then ( cd pwtools ; make all ) ; fi
|
2003-12-02 23:47:00 +08:00
|
|
|
upf : libs
|
2004-02-24 18:19:54 +08:00
|
|
|
if test -d upftools; then ( cd upftools; make all ) ; fi
|
2003-09-24 17:59:22 +08:00
|
|
|
|
2004-01-29 02:14:17 +08:00
|
|
|
pwall : pw ph pp gamma nc pwcond d3 tools
|
|
|
|
all : pwall fpmd cp upf
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-12-02 23:47:00 +08:00
|
|
|
modules :
|
2003-01-20 05:58:50 +08:00
|
|
|
( cd Modules; make all )
|
2003-12-02 23:47:00 +08:00
|
|
|
libs : modules
|
2003-11-20 01:10:26 +08:00
|
|
|
( cd clib; make all )
|
|
|
|
( cd flib; make all )
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-11-20 01:10:26 +08:00
|
|
|
# create link only if file exists
|
2003-12-02 23:47:00 +08:00
|
|
|
links :
|
2003-07-22 17:12:50 +08:00
|
|
|
test -d bin || mkdir bin
|
2003-11-20 01:10:26 +08:00
|
|
|
( cd bin/ ; \
|
2003-12-11 19:10:03 +08:00
|
|
|
for exe in ../PW/pw.x ../PW/memory.x \
|
|
|
|
../PH/ph.x ../D3/d3.x ../Gamma/phcg.x \
|
2003-12-04 17:51:26 +08:00
|
|
|
../CPV/cp.x ../FPMD/par2.x ../PP/average.x ../PP/bands.x \
|
|
|
|
../PP/chdens.x ../PP/dos.x ../PP/plotrho.x ../PP/pp.x \
|
|
|
|
../PP/projwfc.x ../PP/voronoy.x ../PP/plotband.x \
|
|
|
|
../PWCOND/pwcond.x ../pwtools/band_plot.x \
|
|
|
|
../pwtools/dynmat.x ../pwtools/fqha.x ../pwtools/matdyn.x \
|
|
|
|
../pwtools/q2r.x ../pwtools/dist.x ../pwtools/ev.x \
|
2004-02-06 19:59:40 +08:00
|
|
|
../pwtools/kpoints.x ../pwtools/path_int.x ; do \
|
2003-11-20 01:10:26 +08:00
|
|
|
if test -f $$exe ; then ln -fs $$exe . ; fi \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
|
|
|
|
# remove object files and executables
|
2003-12-02 23:47:00 +08:00
|
|
|
clean :
|
2003-11-20 01:10:26 +08:00
|
|
|
touch make.rules make.sys # make complains if they aren't there
|
2003-12-02 23:47:00 +08:00
|
|
|
# # same with .dependencies below
|
2003-12-17 23:21:25 +08:00
|
|
|
for dir in PW PWNC PH PP D3 PWCOND Gamma pwtools upftools \
|
2003-11-20 21:28:10 +08:00
|
|
|
Modules install clib flib FPMD CPV ; do \
|
2003-11-20 01:10:26 +08:00
|
|
|
if test -d $$dir ; then \
|
2003-12-02 23:47:00 +08:00
|
|
|
( cd $$dir ; touch .dependencies ; make clean ) \
|
2003-11-20 01:10:26 +08:00
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
|
|
|
# remove configuration files too
|
2003-12-02 23:47:00 +08:00
|
|
|
veryclean : clean
|
2003-11-21 19:49:12 +08:00
|
|
|
- /bin/rm -rf make.rules make.sys */.dependencies \
|
|
|
|
config.log config.status */dum1 */dum2 bin/*.x \
|
2003-12-02 23:47:00 +08:00
|
|
|
autom4te.cache pw.tar.gz FPMD/version.h \
|
|
|
|
intel.pcl */intel.pcl
|
2004-02-24 17:48:24 +08:00
|
|
|
- if test -d GUI ; then ( cd GUI; make veryclean ) ; fi
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-12-02 23:47:00 +08:00
|
|
|
tar :
|
2003-11-21 01:36:20 +08:00
|
|
|
tar cvf pw.tar \
|
2004-02-19 21:01:41 +08:00
|
|
|
License README */README README.cvs README.configure \
|
|
|
|
INSTALL Makefile */Makefile \
|
2004-02-06 20:02:47 +08:00
|
|
|
configure configure.ac config.guess config.sub install-sh \
|
|
|
|
makedeps.sh moduledep.sh make.rules.in make.sys.in configure.old \
|
2003-11-21 22:37:26 +08:00
|
|
|
*/*.f90 */*.c */*.f clib/*.h include/*.h* upftools/UPF \
|
|
|
|
pwtools/*.awk pwtools/*.sh
|
2003-11-21 01:36:20 +08:00
|
|
|
# archive a few entire directories, but without CVS subdirs
|
2004-01-21 21:32:13 +08:00
|
|
|
find install *docs *_examples pseudo -type f \
|
|
|
|
| grep -v -e /CVS/ -e /results/ | xargs tar rvf pw.tar
|
2003-11-13 19:40:18 +08:00
|
|
|
gzip pw.tar
|
|
|
|
|
2004-02-20 04:10:15 +08:00
|
|
|
|
|
|
|
# TAR-GUI works only if we have CVS-sources !!!
|
|
|
|
tar-gui :
|
2004-02-20 23:21:16 +08:00
|
|
|
@if test -d GUI/PWgui ; then \
|
|
|
|
cd GUI/PWgui; \
|
2004-02-24 17:48:24 +08:00
|
|
|
make clean cvsinit pwgui-source-notcl; \
|
2004-02-20 23:21:16 +08:00
|
|
|
mv PWgui-*.tgz ../../; \
|
2004-02-20 04:10:15 +08:00
|
|
|
else \
|
|
|
|
echo ""; \
|
|
|
|
echo " Sorry tar-gui works only for CVS-sources !!!"; \
|
|
|
|
echo ""; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
|