Hi, With Automake master and 1.12.2, if Makefile.am has:
nobase_foo_DATA = sub/nodist.dat nobase_dist_foo_DATA = sub/dist.dat sub/dist.dat is not packed in the distribution. I doubt this is a bug, but the opposite use of dist_ and nobase_: dist_bar_DATA = sub/base.dat nobase_dist_bar_DATA = sub/nobase.dat works just fine. I'm attaching a test case. Regards, -- Daiki Ueno
#! /bin/sh # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Make sure nobase_* works. required=cc . test-init.sh cat >> configure.ac <<'EOF' AC_OUTPUT EOF cat > Makefile.am << 'EOF' foodir = $(prefix)/foo bardir = $(prefix)/bar nobase_foo_DATA = sub/nodist.dat nobase_dist_foo_DATA = sub/dist.dat dist_bar_DATA = sub/base.dat nobase_dist_bar_DATA = sub/nobase.dat EOF mkdir sub : > sub/nodist.dat : > sub/dist.dat : > sub/nobase.dat : > sub/base.dat rm -f install-sh $ACLOCAL $AUTOCONF $AUTOMAKE -a --copy ./configure --prefix "$(pwd)/inst" $MAKE $MAKE install test -f inst/foo/sub/nodist.dat test -f inst/foo/sub/dist.dat test -f inst/bar/sub/nobase.dat test -f inst/bar/base.dat $MAKE distcheck :