changeset 20717:d1cfc304665a

build: Fix broken doc/module.mk rules for spellcheck and undocumented_list. * doc/module.mk: Fix broken rules for spellcheck and undocumented_list.
author Rik <rik@octave.org>
date Wed, 18 Nov 2015 21:58:25 -0800
parents 1ecee53513d7
children aaaaca0891be
files doc/module.mk
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/module.mk	Wed Nov 18 17:24:47 2015 -0800
+++ b/doc/module.mk	Wed Nov 18 21:58:25 2015 -0800
@@ -551,19 +551,20 @@
 
 doc/interpreter/undocumented_list:
 	rm -f $@-t $@
-	-$(PERL) $(srcdir)/doccheck/mk_undocumented_list > $@-t
+	-cd $(srcdir)/doc/interpreter; $(PERL) ./doccheck/mk_undocumented_list > $(@F)-t
 	mv $@-t $@
 .PHONY: doc/interpreter/undocumented_list
 
 SPELLCHECK_FILES = $(MUNGED_TEXI_SRC:.texi=.scheck)
 
 %.scheck: %.texi | doc/interpreter/$(octave_dirstamp)
-	$(srcdir)/doc/interpreter/doccheck/spellcheck $< > $@-t
+	cd $(srcdir)/doc/interpreter; ./doccheck/spellcheck $(<F) > $(@F)-t
 	mv $@-t $@
 	[ -s $@ ] || rm -f $@
 
 spellcheck: $(SPELLCHECK_FILES)
-	@if ls *.scheck >/dev/null 2>&1 ; then \
+	@cd $(srcdir)/doc/interpreter ; \
+	if ls *.scheck >/dev/null 2>&1 ; then \
 		echo "Spellcheck failed"; \
 		echo "Review the following files:"; \
 		ls *.scheck ; \