# Distribution make file

VERSION=`cat version.txt`

tardist: helper product_dist

helper_distdir=zopeedit-${VERSION}-src
helper_tarball=${helper_distdir}.tgz
product_distdir=ExternalEditor-${VERSION}
product_tarball=${product_distdir}.tgz

COMMON_FILES=\
  CHANGES.txt\
  INSTALL-UNIX.txt\
  INSTALL-WIN32.txt\
  LICENSE.txt\
  README.txt\
  version.txt

HELPER_FILES=zopeedit.py Plugins/*.py ${COMMON_FILES}

HELPER_DIST_FILES=${HELPER_FILES: %=dist/${helper_distdir}/%}

${HELPER_DIST_FILES}: dist/${helper_distdir}/%: %
	mkdir -p ${<D}
	cp -p $F $<


${helper_tarball}: ${HELPER_DIST_FILES}
	tar zf $F -c ${<D}

helper: ${helper_tarball}
