From dfc0185807f72e2d1ef4381a5904f93afd4454c3 Mon Sep 17 00:00:00 2001 From: stevenj Date: Sat, 16 Oct 2010 17:00:36 -0400 Subject: [PATCH] include nlopt_optimize_usage.h in dist tarball, for Windows users; thanks to Per-Olaf Sturesson for the suggestion darcs-hash:20101016210036-c8de0-e090de40c0610862c1bd607e499ee3b1f2796a5d.gz --- octave/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/octave/Makefile.am b/octave/Makefile.am index 821fe65..1b3d657 100644 --- a/octave/Makefile.am +++ b/octave/Makefile.am @@ -19,6 +19,9 @@ endif nlopt_optimize.oct: nlopt_optimize-oct.cc nlopt_optimize_usage.h $(top_builddir)/.libs/libnlopt@NLOPT_SUFFIX@.la $(MKOCTFILE) -o $@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(srcdir)/nlopt_optimize-oct.cc $(LDFLAGS) -L$(top_builddir)/.libs -lnlopt@NLOPT_SUFFIX@ +BUILT_SOURCES = nlopt_optimize_usage.h +MAINTAINERCLEANFILES = $(BUILT_SOURCES) + nlopt_optimize_usage.h: $(srcdir)/nlopt_optimize.m echo "#define NLOPT_OPTIMIZE_USAGE \\" > $@ sed 's/\"/\\"/g' $(srcdir)/nlopt_optimize.m | sed 's,^% ,\",;s,^%,\",;s,$$,\\n\" \\,' >> $@ @@ -35,6 +38,6 @@ nlopt_optimize.$(MEXSUFF): nlopt_optimize-mex.c $(top_builddir)/.libs/libnlopt@N ####################################################################### -EXTRA_DIST = nlopt_optimize-oct.cc nlopt_optimize-mex.c $(MFILES) nlopt_minimize.m nlopt_minimize_constrained.m nlopt_optimize.m +EXTRA_DIST = nlopt_optimize-oct.cc nlopt_optimize-mex.c $(MFILES) nlopt_minimize.m nlopt_minimize_constrained.m nlopt_optimize.m nlopt_optimize_usage.h CLEANFILES = nlopt_optimize.oct nlopt_optimize.h nlopt_optimize.$(MEXSUFF) nlopt_optimize-oct.o -- 2.30.2