WXDIR = d:\wx166

all:	zip

clean:
        -deltree /y debug
	-deltree /y release
	-deltree /y disk
	-erase jazz.hlp
	-erase utod.exe
	-erase copying.txt
	-erase changelo.txt
	-erase todo.txt
	-erase utod.exe
	-erase *.obj
	-erase *.mdp
	-erase *.ncb
	-erase *.zip

utod.exe : ..\mswin\utod.c
        cl ..\mswin\utod.c

release\jazz32.exe:
	nmake /f jazz32.mak CFG="jazz32 - Win32 Release"

jazz.hlp : ..\doc\jazz.rtf jazz.hpj
        hcw /c/m/e jazz.hpj

COMPRESS=$(WXDIR)\utils\winstall\bin\compress -r

disk: release\jazz32.exe jazz.hlp utod.exe
	mkdir disk
	copy release\jazz32.exe jazz.exe
        $(COMPRESS) jazz.exe disk
	del jazz.exe
        $(COMPRESS) ..\mswin\jazz2.cfg disk
        $(COMPRESS) ..\mswin\jazz3.cfg disk
        $(COMPRESS) ..\src\jazz.mid disk
        copy ..\changelog changelo.txt
        utod changelo.txt
        $(COMPRESS) changelo.txt disk
        copy ..\copying copying.txt
        utod copying.txt
        $(COMPRESS) copying.txt disk
        $(COMPRESS) jazz.hlp disk
        copy ..\todo todo.txt
        utod todo.txt
        $(COMPRESS) todo.txt disk
        copy install.inf disk
	copy ..\song\*.* disk
        copy $(WXDIR)\utils\winstall\bin\install.exe disk

zip:	disk
	c:\bin\pkzip jazz32.zip disk\*.*

