#
# This makefile is used to package up a release.  It will create and populate
# a directory called 'image' that and leave behind egads.zip in the current
# directory.  A 'clean' target cleans this mess up.
#

WHICH	=	Debug

FILES	=	image/egads.dll		\
		image/egads.exe		\
		image/pdh.dll		\
		image/egads.lib		\
		image/setup.exe		\
		image/egads.h		\
		image/license.txt	\
		image/README

ZIPFILE	=	egads.zip

all:	image $(ZIPFILE)

image:
	mkdir image

$(ZIPFILE):	$(FILES)
	(cd image ; zip ../$(ZIPFILE) *)

image/egads.dll:	../$(WHICH)/egads.dll
	cp -f $< $@

image/egads.exe:	../$(WHICH)/egads.exe
	cp -f $< $@

image/pdh.dll:		pdh.dll
	cp -f $< $@

image/egads.lib:	../$(WHICH)/egads.lib
	cp -f $< $@

image/setup.exe:	../$(WHICH)/setup.exe
	cp -f $< $@

image/egads.h:		../egads.h.in
	cp -f $< $@

image/license.txt:	license.txt
	cp -f $< $@

image/README:		../README
	cp -f $< $@

clean:
	$(RM) $(FILES)
	$(RM) $(ZIPFILE)
	rmdir image

# vim: noet sts=0 ts=8 sw=8
