On Fri, Jun 26, 2009 at 4:54 AM, Ralf Wildenhues<Ralf.Wildenhues@xxxxxx> wrote: > if INSTALLDOCS > MAYBEDOCS = doc > dist_doc_DATA = README > else > docdir = > endif > SUBDIRS = src $(MAYBEDOCS) Can (should) SUBDIRS contain conditionals? Is automake smart to know that MAYBEDOCS must be entered not for install but for "make dist" and "clean" etc? We have a somewhat similar situation here, depending on hostplatform installation differs and we are using recursive configures (AC_CONFIG_SUBDIRS). Even if documentation is wanted then probably not of all but just of one package etc. We usually have some special "install and zip" targets. We cross-compile for the whatever target (on linux), install to a temp directory below cwd: $(ZIPNAME).zip: Makefile rm -f $(ZIPNAME).zip rm -rf $(ZIPNAME) $(MAKE) prefix="" DESTDIR=`pwd`/$(ZIPNAME) install zip -r "$(ZIPNAME).zip" $(ZIPNAME) test -e $(ZIPNAME).zip rm -rf $(ZIPNAME) and sometimes even delete from the install dir before calling zip. I guess there are better ways to do so? Steffen _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf