#!make
# ^^^ help emacs out :/


include toc.make
ifeq (,$(TOC_MAKE))
toc.make:
	@echo "You must run configure once before running make."; exit 1
else
$(TOC_MAKE): configure.common
endif

SUBDIRS = include lib
SUBDIRS += client

ifneq (,$(strip $(filter dist testdist clean distclean uninstall install,$(MAKECMDGOALS))))
# only build these SUBDIRS when running certain targets
      SUBDIRS += doc $(TOC_HOME)
endif


INSTALL_BINS = s11n-config


DISTCLEAN_FILES += foo bar *~ $(SHARED_MAKEFILE) s11n-config


DIST_FILES += configure LICENSE.$(PACKAGE_NAME) postconfig.s11n
DIST_FILES += configure.$(PACKAGE_NAME) configure.common toc.$(PACKAGE_NAME).make.at
DIST_FILES += ChangeLog README README.CVS INSTALL



all: subdirs
