[vlc-commits] [Git][videolan/vlc][master] qt: Makefile.am: fix dependency generation
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Nov 10 10:57:16 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
72d7d1e5 by Alexandre Janniaux at 2026-11-10T10:42:03+00:00
qt: Makefile.am: fix dependency generation
When the dependencie were generated, and the Makefile was updated, the
dependencies would never be written again but would still be regenerated
everytimes. We don't need to compare the date since it is not used as
dependencies to target recipees, contrary to the stamps files.
Also remove them from the non-verbose display since we don't care about
those dependency files in the build itself, the dependency generation is
not printed usually.
Fix #30107
- - - - -
1 changed file:
- modules/gui/qt/Makefile.am
Changes:
=====================================
modules/gui/qt/Makefile.am
=====================================
@@ -1549,12 +1549,11 @@ endif
# registered with the sources as prerequisites
shaders/shaders.deps: Makefile
$(AM_V_at)$(MKDIR_P) $(@D)
- $(AM_V_GEN){ \
+ $(AM_V_at){ \
for s in $(libqt_plugin_la_SHADER_FRAG) $(libqt_plugin_la_SHADER_VERT); do \
echo "$$s.qsb: $(srcdir)/$$s"; \
done; \
- } > $@.tmp && \
- if cmp -s $@.tmp $@; then rm -f $@.tmp; else mv $@.tmp $@; fi
+ } > $@.tmp && mv $@.tmp $@
BUILT_SOURCES += shaders/shaders.deps
CLEANFILES += shaders/shaders.deps
@@ -1574,7 +1573,7 @@ QML_RULES_DEPS = $(libqt_plugin_la_QML_MODULES:=/qml.deps)
# to get the module name.
$(QML_RULES_DEPS): Makefile
$(AM_V_at)$(MKDIR_P) $(@D)
- $(AM_V_GEN){ \
+ $(AM_V_at){ \
echo '$(@D)/qmldir.qrc: $(@D)/qmldir'; \
echo '$(@D)/res.qrc $(@D)/qmldir: $(@D)/qml_modules.stamp'; \
echo '$(@D)/qmlcachegen.rsp: $$(builddir)/$(@D)/res.qrc'; \
@@ -1582,8 +1581,7 @@ $(QML_RULES_DEPS): Makefile
echo '$(@D)/qmlassets.cpp: $$(builddir)/$(@D)/qmldir.qrc $$(builddir)/$(@D)/res.qrc'; \
echo '$(@D)/qmlassets.cpp: $$(libqml_module_$(@D)_a_QML) $$(libqml_module_$(@D)_a_Singleton_QML)'; \
echo '$$(libqml_module_$(@D)_a_QML:.qml=.cpp) $$(libqml_module_$(@D)_a_Singleton_QML:.qml=.cpp): $$(builddir)/$(@D)/res.qrc'; \
- } > $@.tmp && \
- if cmp -s $@.tmp $@; then rm -f $@.tmp; else mv $@.tmp $@; fi
+ } > $@.tmp && mv $@.tmp $@
BUILT_SOURCES += $(QML_RULES_DEPS)
CLEANFILES += $(QML_RULES_DEPS)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/72d7d1e526b10bd3543641ebddd814180a6ccd12
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/72d7d1e526b10bd3543641ebddd814180a6ccd12
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list