From 24d00bbfa8183f5563c9570314466c565cc91459 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 9 Oct 2015 14:15:45 +0200 Subject: [PATCH] warn when re-installing test version --- App/tools/driver.makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/App/tools/driver.makefile b/App/tools/driver.makefile index 87ac47a..adca594 100644 --- a/App/tools/driver.makefile +++ b/App/tools/driver.makefile @@ -430,6 +430,11 @@ ifeq ($(shell echo "${LIBVERSION}" | grep -v -E "^[0-9]+\.[0-9]+\.[0-9]+\$$"),) install:: @test ! -d ${MODULE_LOCATION}/R${EPICSVERSION}/lib/${T_A} || \ (echo -e "Error: ${MODULE_LOCATION}/R${EPICSVERSION}/lib/${T_A} already exists.\nNote: If you really want to overwrite then uninstall first."; false) +else +install:: + @test ! -d ${MODULE_LOCATION}/R${EPICSVERSION}/lib/${T_A} || \ + (echo -e "Warning: Re-installing ${MODULE_LOCATION}/R${EPICSVERSION}/lib/${T_A}"; \ + rm -rf ${MODULE_LOCATION}/R${EPICSVERSION}/lib/${T_A}) endif install build debug:: O.${EPICSVERSION}_Common O.${EPICSVERSION}_${T_A}