#
# Keyman Developer installation builder Makefile
#

!include ..\Defines.mak

# ----------------------------------------------------------------------

DEVELOPER_FILES=kmdev.wixobj xml.wixobj cef.wixobj templates.wixobj server.wixobj kmc.wixobj

setup:
#
# Prepare file version information
#
    cd $(DEVELOPER_ROOT)\src\inst
    $(MKVER_U) download.in.mak download.mak

#
# Build the installation archive
#

    $(MAKE) -fdownload.mak candle
    $(WIXLIGHT) -sice:ICE91 -sice:ICE60 -dWixUILicenseRtf=License.rtf -out keymandeveloper.msi -ext WixUIExtension $(DEVELOPER_FILES)
    $(MAKE) -fdownload.mak clean-heat

#
# Sign the installation archive
#

    $(SIGNCODE) /d "Keyman Developer" keymandeveloper.msi

#
# Copy the installation archive
#

    cd $(DEVELOPER_ROOT)\src\inst
    $(MAKE) -fdownload.mak

build:
    @rem

signcode:
    @rem

wrap-symbols:
    @rem

clean:
    cd $(DEVELOPER_ROOT)\src\inst
    -del /Q download.mak
    -del /Q *.msi
    -del /Q *.msp
    -del /Q *.wixobj
    -del /Q *.log
    -del /Q *.pcp
    -del /Q setup.inf
    -del /Q setup.zip
    -del /Q *.exe
    -del /Q *.wixpdb
    -del /Q xml.wxs
    -del /Q cef.wxs
    -del /Q templates.wxs
    -del /Q kmc.wxs

test-releaseexists:
    cd $(DEVELOPER_ROOT)\src\inst
    $(MKVER_U) download.in.mak download.mak

    $(MAKE) -fdownload.mak test-releaseexists

install:
    @rem

# ----------------------------------------------------------------------

!include ..\Target.mak

# ----------------------------------------------------------------------
# EOF
# ----------------------------------------------------------------------
