1# To build an NSIS installer, get NSIS version 3.04 or newer from
2# http://sourceforge.net/projects/nsis
3# Fix the MAKENSIS variable so that you have the correct path.
4# Unzip the windows binary release into a subdirectory of this
5# directory, for example "2.6.5".  Make sure the VERSION
6# variable has the same name as the directory.
7#
8# Type make, and it should build an installer called Bochs-${VERSION}.exe
9
10# MAKENSIS='c:/Program Files/NSIS/makensis'
11MAKENSIS='/c/Program Files (x86)/NSIS/makensis'
12
13VERSION=@VERSION@
14TARGET=Bochs-${VERSION}.exe
15DLXDIR=bochs-${VERSION}/dlxlinux
16
17all: ${TARGET}
18
19fixups::
20	if test -f ${DLXDIR}/bochsrc.txt; then mv ${DLXDIR}/bochsrc.txt ${DLXDIR}/bochsrc.bxrc; fi
21	rm -f ${DLXDIR}/*.bat
22
23${TARGET}: fixups bochs.nsi
24	rm -rf ${TARGET}
25	${MAKENSIS} bochs.nsi
26	test -f ${TARGET}
27	ls -l ${TARGET}
28
29clean::
30	rm -rf ${TARGET}
31