[tools] Try to fix #xamarin/maccore@2637 by making sure a file's timestamp changes. (#17352)
Try to fix #xamarin/maccore@2637 by making sure a file's timestamp changes after make runs the corresponding target. Otherwise it seems make may run into some sort of infinite loop. Fixes https://github.com/xamarin/maccore/issues/2637.
This commit is contained in:
Родитель
8be73c7b04
Коммит
6af8da73af
|
@ -58,6 +58,7 @@
|
||||||
-e "s/@PRODUCT_HASH@/$(CURRENT_HASH_LONG)/g" \
|
-e "s/@PRODUCT_HASH@/$(CURRENT_HASH_LONG)/g" \
|
||||||
$< > $@.tmp
|
$< > $@.tmp
|
||||||
$(Q) if ! diff $@ $@.tmp >/dev/null; then $(CP) $@.tmp $@; echo "The file $(TOP)/tools/common/SdkVersions.cs has been automatically re-generated; please commit the changes."; fi
|
$(Q) if ! diff $@ $@.tmp >/dev/null; then $(CP) $@.tmp $@; echo "The file $(TOP)/tools/common/SdkVersions.cs has been automatically re-generated; please commit the changes."; fi
|
||||||
|
$(Q) touch $@
|
||||||
|
|
||||||
../common/ProductConstants.cs: ../common/ProductConstants.in.cs Makefile $(TOP)/Make.config
|
../common/ProductConstants.cs: ../common/ProductConstants.in.cs Makefile $(TOP)/Make.config
|
||||||
$(Q_GEN) sed \
|
$(Q_GEN) sed \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче