changeset 22067:1340feab13a8

restore move-if-change rule for DOCSTRINGS files (bug #48430) * libinterp/module.mk (libinterp/DOCSTRINGS):: Use move-if-change. * scripts/module.mk (scripts/DOCSTRINGS): Likewise.
author John W. Eaton <jwe@octave.org>
date Thu, 07 Jul 2016 14:41:34 -0400
parents c4ef0b3dc40c
children 88b3c6932236
files libinterp/module.mk scripts/module.mk
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/module.mk	Thu Jul 07 14:14:19 2016 -0400
+++ b/libinterp/module.mk	Thu Jul 07 14:41:34 2016 -0400
@@ -276,7 +276,7 @@
 $(srcdir)/libinterp/DOCSTRINGS: $(ALL_DEFUN_FILES) | libinterp/$(octave-dirstamp)
 	$(AM_V_GEN)rm -f libinterp/DOCSTRINGS-t && \
 	$(PERL) $(srcdir)/libinterp/gendoc.pl "$(srcdir)" $(ALL_DEFUN_FILES) > libinterp/DOCSTRINGS-t && \
-	mv libinterp/DOCSTRINGS-t $@
+	$(call move_if_change_rule,libinterp/DOCSTRINGS-t,$@)
 
 OCTAVE_INTERPRETER_TARGETS += \
   $(OCT_FILES) \
--- a/scripts/module.mk	Thu Jul 07 14:14:19 2016 -0400
+++ b/scripts/module.mk	Thu Jul 07 14:41:34 2016 -0400
@@ -109,7 +109,7 @@
 $(srcdir)/scripts/DOCSTRINGS: $(FCN_FILES) $(GEN_FCN_FILES_IN) | scripts/$(octave-dirstamp)
 	$(AM_V_GEN)rm -f scripts/DOCSTRINGS-t && \
 	$(PERL) $(srcdir)/scripts/mkdoc.pl "$(srcdir)" $(FCN_FILES) $(GEN_FCN_FILES_IN) > scripts/DOCSTRINGS-t && \
-	mv scripts/DOCSTRINGS-t $@
+	$(call move_if_change_rule,scripts/DOCSTRINGS-t,$@)
 
 check-m-sources:
 	@echo "checking whether files in source tree are listed in module.mk files..."; \