Mercurial > octave-nkf
diff libinterp/Makefile.am @ 16170:2a4f83826024
new way to test for features in Octave scripts
* __have_feature__.m: New file.
* test.m, geometryimages.m, sparseimages.m: Use it. Delete tests for
testif and xfail.
* config-features.sh: New file.
* libinterp/Makefile.am (EXTRA_DIST): Include config-features.sh in
the list.
(oct-conf-features.h): New target.
(BUILT_NODISTFILES, nodist_liboctinterp_la_SOURCES): Include
oct-conf-features.h in the list.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 02 Mar 2013 07:41:50 -0500 |
parents | 236be6179785 |
children | 39096b290a2f |
line wrap: on
line diff
--- a/libinterp/Makefile.am Fri Mar 01 14:06:02 2013 -0800 +++ b/libinterp/Makefile.am Sat Mar 02 07:41:50 2013 -0500 @@ -58,6 +58,7 @@ parse-tree/oct-gperf.h \ parse-tree/oct-parse.cc \ oct-conf.h \ + oct-conf-features.h \ version.h \ builtin-defun-decls.h \ builtins.cc @@ -76,6 +77,7 @@ builtin-defun-decls.h \ operators/ops.cc \ oct-conf.h \ + oct-conf-features.h \ version.h \ $(OPT_HANDLERS) \ $(OPT_INC) \ @@ -85,6 +87,7 @@ EXTRA_DIST = \ Makefile.in \ DOCSTRINGS \ + config-featurs.sh \ find-defun-files.sh \ gendoc.pl \ genprops.awk \ @@ -162,6 +165,7 @@ builtin-defun-decls.h \ builtins.cc \ oct-conf.h \ + oct-conf-features.h \ version.h \ $(OPT_INC) @@ -256,6 +260,10 @@ oct-conf.h: oct-conf.in.h Makefile @$(do_subst_config_vals) +oct-conf-features.h: $(top_builddir)/config.h config-features.sh + $(srcdir)/config-features.sh $< > $@-t + mv $@-t $@ + version.h: version.in.h Makefile $(SED) < $< \ -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $(<F) by Make.|" \