[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:
Rolf Bjarne Kvinge 2023-01-25 08:56:56 +01:00 коммит произвёл GitHub
Родитель 8be73c7b04
Коммит 6af8da73af
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -58,6 +58,7 @@
-e "s/@PRODUCT_HASH@/$(CURRENT_HASH_LONG)/g" \
$< > $@.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) touch $@
../common/ProductConstants.cs: ../common/ProductConstants.in.cs Makefile $(TOP)/Make.config
$(Q_GEN) sed \