Bug 60312 - DIST_SUBDIRS should never appear in a conditional
authorAkira TAGOH <akira@tagoh.org>
Tue, 5 Feb 2013 11:44:18 +0000 (20:44 +0900)
committerAkira TAGOH <akira@tagoh.org>
Tue, 5 Feb 2013 11:45:14 +0000 (20:45 +0900)
As it is documented like this:

If SUBDIRS is defined conditionally using Automake conditionals,
Automake will define DIST_SUBDIRS automatically from the possible
values of SUBDIRS in all conditions.

So we don't need to re-define DIST_SUBDIRS in Makefile.am unless
we use AC_SUBST to define SUBDIRS.

Patch from Quentin Glidic

Makefile.am

index 558b695..22f2354 100644 (file)
@@ -26,9 +26,6 @@ SUBDIRS=fontconfig fc-case fc-lang fc-glyphname src \
        fc-validate conf.d test
 if ENABLE_DOCS
 SUBDIRS += doc
-DIST_SUBDIRS = $(SUBDIRS)
-else
-DIST_SUBDIRS = $(SUBDIRS) doc
 endif
 
 AUTOMAKE_OPTIONS = dist-bzip2