Mercurial > forge
changeset 2584:aed121061671 octave-forge
Only create link if it doesn't exist
author | adb014 |
---|---|
date | Thu, 05 Oct 2006 09:31:33 +0000 |
parents | 932c17e43b4a |
children | 0a86ec4094c9 |
files | main/comm/doc/Makefile |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/comm/doc/Makefile Thu Oct 05 09:23:08 2006 +0000 +++ b/main/comm/doc/Makefile Thu Oct 05 09:31:33 2006 +0000 @@ -62,7 +62,9 @@ if test ! -e "comms/$@"; then \ $(INSTALL_DATA) comms/$(@:.html=_toc.html) comms/$@ ; \ fi; \ - $(LN_S) $@ comms/index.html; \ + if [ ! -e "comms/index.html" ]; then \ + $(LN_S) $@ comms/index.html; \ + fi; \ mv comms html; \ $(INSTALL_DATA) *.png html; \ else \ @@ -73,7 +75,9 @@ mkdir html; \ fi; \ $(INSTALL_DATA) *.png *.html html; \ - $(LN_S) $@ html/index.html; \ + if [ ! -e "html/index.html" ]; then \ + $(LN_S) $@ html/index.html; \ + fi \ fi \ fi