[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AM Conditional for SUBDIRS
From: |
Vikram Ambrose |
Subject: |
AM Conditional for SUBDIRS |
Date: |
Thu, 07 Aug 2008 14:37:36 -0400 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080501) |
I have a problem trying to conditional include a subdir into a build
configuration or not.
I have tried two things.
1)
-------------------------------------------------
SUBDIRS = pkgA pkgB
if BUILD_pkgC
SUBDIRS += pkgC
endif
-------------------------------------------------
2)
-------------------------------------------------
SUBDIRS = pkgA pkgB $(extra_pkgs)
extra_pkgs =
if BUILD_pkgC
extra_pkgs += pkgC
endif
-------------------------------------------------
Both of which work, for make; make install; make clean; but when i try
to make dist or make distclean, they fail. I do a test in configure.ac
to conditional set AC_CONFIG_FILES([pkgc/Makefile])
How do I do this properly?
Vikram
- AM Conditional for SUBDIRS,
Vikram Ambrose <=