Mercurial > pytave
comparison Makefile.am @ 388:ce61206a61f8
build: make distcheck pass again
* Makefile.am (EXTRA_DIST): Include $(M_FILES). (PKG_ADD, PKG_DEL): Use
$(srcdir) as needed. (check-local): Use $(srcdir) to run the test script.
* __py_tests__.m: Suppress warnings about opening files on the load path.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 03 Apr 2017 11:51:01 -0700 |
parents | 1af368713379 |
children | d4061763a56b |
comparison
equal
deleted
inserted
replaced
387:1af368713379 | 388:ce61206a61f8 |
---|---|
73 octave_to_python.h \ | 73 octave_to_python.h \ |
74 python_to_octave.h | 74 python_to_octave.h |
75 | 75 |
76 TST_FILES = $(addsuffix -tst,$(OCT_SOURCE_FILES)) | 76 TST_FILES = $(addsuffix -tst,$(OCT_SOURCE_FILES)) |
77 | 77 |
78 EXTRA_DIST = $(DOC_FILES) $(OCT_SOURCE_FILES) | 78 EXTRA_DIST = $(DOC_FILES) $(M_FILES) $(OCT_SOURCE_FILES) |
79 | 79 |
80 EXTRA_libdir = $(PYTAVE_MODULE_INSTALL_PATH) | 80 EXTRA_libdir = $(PYTAVE_MODULE_INSTALL_PATH) |
81 EXTRA_lib_LTLIBRARIES = _pytave.la | 81 EXTRA_lib_LTLIBRARIES = _pytave.la |
82 | 82 |
83 _pytave_la_CPPFLAGS = $(AM_CPPFLAGS) | 83 _pytave_la_CPPFLAGS = $(AM_CPPFLAGS) |
113 mv $@-t $@ | 113 mv $@-t $@ |
114 | 114 |
115 PKG_ADD: $(OCT_SOURCE_FILES) | 115 PKG_ADD: $(OCT_SOURCE_FILES) |
116 $(AM_V_GEN)for f in $(OCT_SOURCE_FILES); do \ | 116 $(AM_V_GEN)for f in $(OCT_SOURCE_FILES); do \ |
117 b=$${f%.cc}; \ | 117 b=$${f%.cc}; \ |
118 funcs=`$(SED) -n 's/^DEFUN.*(\(\w\+\),.*/\1/p' $$f | grep -v $$b`; \ | 118 if test -f $$f; then d=.; else d=$(srcdir); fi; \ |
119 funcs=`$(SED) -n 's/^DEFUN.*(\(\w\+\),.*/\1/p' $$d/$$f | grep -v $$b`; \ | |
119 if test -n "$$funcs"; then \ | 120 if test -n "$$funcs"; then \ |
120 echo "$$funcs" | $(SED) "s/.*/autoload (\"&\", \"$$b.oct\");/" > $@-t && \ | 121 echo "$$funcs" | $(SED) "s/.*/autoload (\"&\", \"$$b.oct\");/" > $@-t && \ |
121 mv $@-t $@ || exit $?; \ | 122 mv $@-t $@ || exit $?; \ |
122 fi; \ | 123 fi; \ |
123 done | 124 done |
124 | 125 |
125 PKG_DEL: $(OCT_SOURCE_FILES) | 126 PKG_DEL: $(OCT_SOURCE_FILES) |
126 $(AM_V_GEN)for f in $(OCT_SOURCE_FILES); do \ | 127 $(AM_V_GEN)for f in $(OCT_SOURCE_FILES); do \ |
127 b=$${f%.cc}; \ | 128 b=$${f%.cc}; \ |
128 funcs=`$(SED) -n 's/^DEFUN.*(\(\w\+\),.*/\1/p' $$f | grep -v $$b`; \ | 129 if test -f $$f; then d=.; else d=$(srcdir); fi; \ |
130 funcs=`$(SED) -n 's/^DEFUN.*(\(\w\+\),.*/\1/p' $$d/$$f | grep -v $$b`; \ | |
129 if test -n "$$funcs"; then \ | 131 if test -n "$$funcs"; then \ |
130 echo "$$funcs" | $(SED) "s/.*/autoload (\"&\", which (\"&\"), \"remove\");/" > $@-t && \ | 132 echo "$$funcs" | $(SED) "s/.*/autoload (\"&\", which (\"&\"), \"remove\");/" > $@-t && \ |
131 mv $@-t $@ || exit $?; \ | 133 mv $@-t $@ || exit $?; \ |
132 fi; \ | 134 fi; \ |
133 done | 135 done |
144 @echo "" | 146 @echo "" |
145 | 147 |
146 check-local: $(M_FILES) $(TST_FILES) | 148 check-local: $(M_FILES) $(TST_FILES) |
147 $(OCTAVE) --no-gui-libs --no-history --no-window-system --norc \ | 149 $(OCTAVE) --no-gui-libs --no-history --no-window-system --norc \ |
148 --path="$(abs_builddir)" --path="$(abs_srcdir)" \ | 150 --path="$(abs_builddir)" --path="$(abs_srcdir)" \ |
149 __py_tests__.m $(M_FILES) $(TST_FILES) | 151 $(srcdir)/__py_tests__.m $(M_FILES) $(TST_FILES) |