Skip to content

Commit c1cc104

Browse files
committed
Copy the source file even when it exists, if it is newer than the existing file
1 parent baba760 commit c1cc104

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

am-shared/tools-tts-dir-include.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ assets/%.pmhfst: %.pmhfst | assets-dir
241241
# Build the .drb bundle
242242
$(GIELLA_TTS_DRBDISTRO): $(GIELLA_TTS_PIPELINE) \
243243
$(GIELLA_TTS_ASSETS)
244-
$(AM_V_at)test -f $(GIELLA_TTS_PIPELINE) || cp -f $(srcdir)/$(GIELLA_TTS_PIPELINE) $(GIELLA_TTS_PIPELINE)
244+
$(AM_V_at)if test -f $(srcdir)/$(GIELLA_TTS_PIPELINE) && \
245+
( test ! -f $(GIELLA_TTS_PIPELINE) || \
246+
test $(srcdir)/$(GIELLA_TTS_PIPELINE) -nt $(GIELLA_TTS_PIPELINE) ); then \
247+
cp -f $(srcdir)/$(GIELLA_TTS_PIPELINE) $(GIELLA_TTS_PIPELINE); \
248+
fi
245249
$(AM_V_GEN)cd $(builddir) && $(DIVVUN_RUNTIME) bundle
246250

247251
endif # HAVE_DIVVUN_RUNTIME

0 commit comments

Comments
 (0)