fix for cases where /ioc/ is a symbolic link

This commit is contained in:
2015-08-18 13:41:17 +02:00
parent f0eadf37a9
commit 5e16d381b0
+2 -2
View File
@@ -733,7 +733,7 @@ ${INSTALL_DBS}: $(notdir ${INSTALL_DBS})
@echo "Installing module template file $@"
$(INSTALL) -d -m444 $< $(@D)
${INSTALL_SCR}: $(notdir ${SCR})
${INSTALL_SCRS}: $(notdir ${SCR})
@echo "Installing script $@"
$(INSTALL) -d -m444 $< $(@D)
@@ -857,7 +857,7 @@ ${DEPFILE}: ${LIBOBJS}
@echo "Collecting dependencies"
$(RM) $@
@echo "# Generated file. Do not edit." > $@
cat *.d | sed 's/ /\n/g' | sed -n 's%$(EPICS_MODULES)/*\([^/]*\)/\([^/]*\)/.*%\1 \2+%p'|sort -u >> $@
cat *.d | sed 's/ /\n/g' | sed -n 's%$(realpath $(EPICS_MODULES))/*\([^/]*\)/\([^/]*\)/.*%\1 \2+%p'|sort -u >> $@
$(BUILDRULE)
$(RM) MakefileInclude