# $Id: Makefile,v 1.4 2001/12/16 18:36:46 wohler Exp $
#
# Makefile for mh-e contributed software.
#
# Note: most changes to this file should also be mirrored in the
# Makefiles in $(TOP)/src and $(TOP)/doc.
#
TOP		= ..

MH-E-CONTRIB	=			\
	README				\
	mh-alias.el			\
	mh-frame.el			\
	multi-prompt.el


all: dist

# Create a distribution. 
dist:
	@echo "Determining release..."
	@TAG=`cvs stat Makefile | awk '/Sticky Tag/{print $$3}'`; \
        if [ "$$TAG" = "(none)" ]; then \
            echo "No sticky tags here. Do a 'cvs update -rmh-e-contrib-M_N'.";\
            exit 1; \
        fi; \
        RELEASE=`echo $$TAG | sed 's/_/./g'`; \
	echo "Building $$RELEASE..."; \
        rm -rf $$RELEASE; \
        mkdir $$RELEASE; \
        cp $(MH-E-CONTRIB) $$RELEASE; \
        tar -czhf $$RELEASE.tgz $$RELEASE
