It works fine here. It's basically similar to tests/embedded/ stuff (all files in the parent EXTRA_DIST, nothing in SUBDIRS so that automake doesn't know about it).
Adding this Makefile.in the list of files that configure has to manage shouldn't be a problem, we already have many .in files that are not Makefile.am. Brice Le 23/09/2011 20:59, Jeff Squyres a écrit : > Err... is this right? > > Does "make dist" and friends still work? > > > On Sep 23, 2011, at 2:56 PM, [email protected] wrote: > >> Author: bgoglin >> Date: 2011-09-23 14:56:56 EDT (Fri, 23 Sep 2011) >> New Revision: 3845 >> URL: https://svn.open-mpi.org/trac/hwloc/changeset/3845 >> >> Log: >> Don't forget the Makefile.in in tests/rename >> >> It's not a .am because we don't want automake to go there >> automatically. We just run things manually, while still >> benefiting from configure srcdir/builddir variables >> Added: >> trunk/tests/rename/Makefile.in >> >> Added: trunk/tests/rename/Makefile.in >> ============================================================================== >> --- (empty file) >> +++ trunk/tests/rename/Makefile.in 2011-09-23 14:56:56 EDT (Fri, 23 Sep >> 2011) >> @@ -0,0 +1,37 @@ >> +srcdir = @srcdir@ >> +abs_top_srcdir = @abs_top_srcdir@ >> +abs_top_builddir = @abs_top_builddir@ >> + >> +all: >> + >> +prepare: >> + @echo >> + @echo "###############################" >> + @echo Enabling renaming in headers... >> + @echo >> + sed -e '/^#define HWLOC_SYM_TRANSFORM 0/s/0/1/' >> \ >> + -e '/^#define HWLOC_SYM_PREFIX hwloc_/s/hwloc_/foobar_/1' >> \ >> + -e '/^#define HWLOC_SYM_PREFIX_CAPS HWLOC_/s/HWLOC_/FOOBAR_/2' >> \ >> + -i $(abs_top_builddir)/include/hwloc/autogen/config.h >> $(abs_top_builddir)/include/private/autogen/config.h >> + >> +missing: prepare >> + @echo >> + @echo "###########################" >> + @echo Finding missing renaming... >> + @echo >> + cpp $(srcdir)/main.c -I $(abs_top_srcdir)/include -I >> $(abs_top_builddir)/include \ >> + | egrep -i '(^| |\*)hwloc_' >> + >> +useless: prepare >> + @echo >> + @echo "###########################" >> + @echo Finding useless renaming... >> + @echo >> + grep '^#define' $(abs_top_srcdir)/include/hwloc/rename.h \ >> + | awk '{print $$2}' \ >> + | egrep -v '(HWLOC_RENAME_H|HWLOC_MUNGE_NAME|HWLOC_NAME)' \ >> + | while read name ; do \ >> + grep $$name -rwH $(abs_top_srcdir)/include/ \ >> + | grep -v rename.h: | grep -v .svn >/dev/null \ >> + || echo $$name; \ >> + done >> _______________________________________________ >> hwloc-svn mailing list >> [email protected] >> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-svn >
