comparison Makeconf.in @ 7698:4584feed3ec4

check-m-sources: new target for script Makefiles
author John W. Eaton <jwe@octave.org>
date Fri, 04 Apr 2008 14:22:10 -0400
parents a2870fd8ac58
children 13871b7de124
comparison
equal deleted inserted replaced
7697:0bdfff62cc49 7698:4584feed3ec4
639 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ 639 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \
640 done 640 done
641 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD 641 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD
642 -rmdir $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) 642 -rmdir $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir))
643 endef 643 endef
644
645 define do-check-m-sources
646 for f in $(notdir $(wildcard $(srcdir)/*.m)); do \
647 found=false; \
648 for m in $(SOURCES); do \
649 if [ "$$f" = "$$m" ]; then \
650 found=true; \
651 break; \
652 fi; \
653 done; \
654 if $$found; then \
655 true; \
656 else \
657 echo "$(script_sub_dir)/$$f: not listed in SOURCES"; \
658 fi; \
659 done
660 endef