diff --git a/configure/RULES_BUILD b/configure/RULES_BUILD index 869fba17e9..0553263b3c 100644 --- a/configure/RULES_BUILD +++ b/configure/RULES_BUILD @@ -532,11 +532,11 @@ endif # LOADABLE_SHRLIB_SUFFIX ifneq ($(INSTALL_CONFIGS),) $(INSTALL_CONFIG)/%: % $(ECHO) "Installing config file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $(abspath $<) $(abspath $(@D)) $(INSTALL_CONFIG)/%: ../% $(ECHO) "Installing config file $@" - @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D) + @$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $(abspath $<) $(abspath $(@D)) endif $(INSTALL_INCLUDE)/%: $(COMMON_DIR)/% diff --git a/src/tools/installEpics.pl b/src/tools/installEpics.pl index 6cd06e8018..c41cc6f911 100644 --- a/src/tools/installEpics.pl +++ b/src/tools/installEpics.pl @@ -57,6 +57,9 @@ my $temp = "$install_dir/TEMP.$name.$$"; my $target = "$install_dir/$name"; + # Don't try to install the file if it already exists + next if $source eq $target; + if (-f $target) { next if -M $target < -M $source and -C $target < -C $source; # Remove old target, making sure it is deletable first