From: stevenj Date: Sat, 16 Oct 2010 21:00:36 +0000 (-0400) Subject: include nlopt_optimize_usage.h in dist tarball, for Windows users; thanks to Per... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dfc0185807f72e2d1ef4381a5904f93afd4454c3;p=nlopt.git 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 --- 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