# HG changeset patch # User Rik # Date 1307640051 25200 # Node ID 40b16bb69fec39c0fb0dbc61f79bbaeda962795e # Parent ee3a60f254e177dc6172cd120c3962d39d4a6f81 maint: Don't distribute files in tarball which must be re-built for each installation * src/Makefile.am: Stop distribution of certain header files like defaults.h which must be customized at build-time. diff -r ee3a60f254e1 -r 40b16bb69fec src/Makefile.am --- a/src/Makefile.am Wed Jun 08 22:10:34 2011 -0700 +++ b/src/Makefile.am Thu Jun 09 10:20:51 2011 -0700 @@ -20,9 +20,6 @@ include $(top_srcdir)/common.mk -octlib_LTLIBRARIES = \ - liboctinterp.la - AM_CPPFLAGS = \ @CPPFLAGS@ -I../libgnu -I$(top_srcdir)/libgnu \ -I$(top_srcdir)/libcruft/misc \ @@ -31,6 +28,8 @@ AUTOMAKE_OPTIONS = subdir-objects +octlib_LTLIBRARIES = liboctinterp.la + ## Order matters here. Leave builtins.cc last, because it depends on ## $(DEF_FILES), and building those requires all the sources ## (except builtins.cc) to be available. @@ -52,9 +51,8 @@ oct-gperf.h \ oct-parse.h -## FIXME -- These files don't need to be distributed. Some of them -## do need to be installed. So we need to add them to a list somewhere -## so that happens correctly. +## Files that are created during build process and installed, +## BUT not distributed in tarball. BUILT_NODISTFILES = \ defaults.h \ graphics.h \ @@ -208,6 +206,13 @@ pt-walk.h \ pt.h +nodist_octinclude_HEADERS = \ + defaults.h \ + graphics.h \ + oct-conf.h \ + mxarray.h \ + version.h + octinclude_HEADERS = \ Cell.h \ base-list.h \ @@ -216,7 +221,6 @@ comment-list.h \ cutils.h \ debug.h \ - defaults.h \ defun-dld.h \ defun-int.h \ defun.h \ @@ -228,7 +232,6 @@ gl-render.h \ gl2ps.h \ gl2ps-renderer.h \ - graphics.h \ graphics-props.cc \ gripes.h \ help.h \ @@ -246,8 +249,6 @@ ls-utils.h \ mex.h \ mexproto.h \ - mxarray.h \ - oct-conf.h \ oct-errno.h \ oct-fstrm.h \ oct-gperf.h \ @@ -282,7 +283,6 @@ unwind-prot.h \ utils.h \ variables.h \ - version.h \ xdiv.h \ xnorm.h \ xpow.h \