Copying QE with "scp -r" causes the link $espresso/iotk -> $espresso/S3DE/iotk to become a directory.

Issuing "make clean" only cleans $espresso/S3DE/iotk, while pw is linked to $espresso/iotk/ which causes every kind of problems.

I have added 2 lines to delete $espresso/iotk/ if it is a directory, the link will be recreated anyway when doing "make pw".

LP




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11290 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
paulatto 2014-12-11 10:15:07 +00:00
parent a7ef3557fb
commit b955bd6b11
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,7 @@ elpa_veryclean:
if test -d ../ELPA; then (rm -R -f ../ELPA); fi
iotk_clean:
if test -d ../S3DE; then (cd ../S3DE; $(MAKE) clean); fi
if test -d ../iotk; then (rm -R -f ../iotk); fi
if test -e ../S3DE/iotk/src/iotk.x; then \
rm -f ../S3DE/iotk/src/iotk.x; fi
(rm -f ../bin/iotk; \
@ -104,6 +105,7 @@ iotk_clean:
rm -f ../bin/iotk_print_kinds.x)
iotk_veryclean:
if test -d ../S3DE; then (rm -R -f ../S3DE); fi
if test -d ../iotk; then (rm -R -f ../iotk); fi
if test -e ../S3DE/iotk/src/iotk.x; then (rm -f ../S3DE/iotk/src/iotk.x); fi
rm -f ../bin/iotk; \
rm -f ../bin/iotk.x; \