mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 17:47:40 +00:00
While it may be smarter to move to a different build system altogether, it is also a *lot* more work. This was a fairly minor syntax refresh to get nmake working with our existing Makefile system. This is now no longer compatible with Borland make, so you will need to use `nmake` to build. The presence of NMAKE.md informs builds systems that nmake should be used instead of make.
74 lines
1.6 KiB
Makefile
74 lines
1.6 KiB
Makefile
#
|
|
# engine installation builder Makefile
|
|
#
|
|
|
|
!include ..\..\Defines.mak
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
ENGINE_FILES=keymanengine.wixobj components.wixobj
|
|
|
|
setup: msm copy
|
|
|
|
build:
|
|
cd $(ROOT)\src\engine\inst\insthelper
|
|
$(MAKE) build
|
|
|
|
signcode:
|
|
cd $(ROOT)\src\engine\inst\insthelper
|
|
$(MAKE) signcode
|
|
|
|
wrap-symbols:
|
|
cd $(ROOT)\src\engine\inst\insthelper
|
|
$(MAKE) symbols
|
|
|
|
msm:
|
|
#
|
|
# Copy files for installation
|
|
#
|
|
$(MKVER_U) download.in download.mak
|
|
|
|
#
|
|
# Make the installation archive
|
|
#
|
|
|
|
$(MAKE) -fdownload.mak prepareredist
|
|
$(MAKE) -fdownload.mak candle
|
|
|
|
# warning 1072 relates to Error table defined by WixUtilExtension. Doesn't really affect us.
|
|
$(WIXLIGHT) -sw1072 -ext WixUtilExtension $(ENGINE_FILES) -o keymanengine.msm
|
|
|
|
copy:
|
|
#
|
|
# Sign the installation archive
|
|
#
|
|
cd $(ROOT)\src\engine\inst
|
|
$(SIGNCODE) /d "Keyman Engine" keymanengine.msm
|
|
|
|
#
|
|
# Copy the installation archive
|
|
#
|
|
cd $(ROOT)\src\engine\inst
|
|
copy $(ROOT)\src\engine\inst\keymanengine.msm $(ROOT)\bin\developer\wix
|
|
$(MAKE) -fdownload.mak copyredist
|
|
|
|
clean:
|
|
cd $(ROOT)\src\engine\inst\insthelper
|
|
$(MAKE) clean
|
|
cd $(ROOT)\src\engine\inst
|
|
if exist download.mak $(MAKE) -fdownload.mak clean
|
|
-del /Q download.mak
|
|
-del /Q *.msm
|
|
-del /Q *.wixobj
|
|
-del /Q *.wixpdb
|
|
|
|
install:
|
|
rem nothing
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
!include ..\..\Target.mak
|
|
|
|
# ----------------------------------------------------------------------
|
|
# EOF
|
|
# ----------------------------------------------------------------------
|