mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-12 03:45:34 +00:00
68 lines
2.2 KiB
Makefile
68 lines
2.2 KiB
Makefile
#
|
|
# TIKE Makefile
|
|
#
|
|
|
|
!include ..\..\Defines.mak
|
|
|
|
build: version.res manifest.res icons dirs xml
|
|
cd $(ROOT)\src\developer\tike
|
|
$(DCC32) tike.dpr
|
|
$(TDS2DBG) tike.exe
|
|
$(MAKEJCLDBG) tike.map
|
|
$(COPY) tike.exe $(PROGRAM)\developer
|
|
if exist tike.dbg $(COPY) tike.dbg $(DEBUGPATH)\developer
|
|
|
|
xml: pull-keymanweb
|
|
cd $(ROOT)\src\developer\tike\xml
|
|
-del /q $(ROOT)\bin\developer\xml\*
|
|
xcopy /s /y * $(ROOT)\bin\developer\xml
|
|
cd $(ROOT)\src\developer\tike
|
|
|
|
pull-keymanweb:
|
|
#
|
|
# Requires us to build KMW in order to get the output files
|
|
# If GIT_BASH_FOR_KEYMAN variable is not defined, then will just throw up
|
|
# a new window to do the build. This means we lose logging and
|
|
# potentially exit values as well. So GIT_BASH should be set for
|
|
# build agents, etc, to something like
|
|
#
|
|
# GIT_BASH_FOR_KEYMAN="C:\Program Files\Git\bin\bash.exe" --init-file "c:\Program Files\Git\etc\profile" -l
|
|
#
|
|
cd $(ROOT)\..\web\source
|
|
!ifdef GIT_BASH_FOR_KEYMAN
|
|
$(GIT_BASH_FOR_KEYMAN) build.sh
|
|
!else
|
|
start /wait ./build.sh
|
|
!endif
|
|
|
|
-rd /s/q $(ROOT)\src\developer\tike\xml\kmw\resource
|
|
mkdir $(ROOT)\src\developer\tike\xml\kmw\resource
|
|
xcopy /y $(ROOT)\..\web\release\web\*.js $(ROOT)\src\developer\tike\xml\kmw\resource\ #
|
|
xcopy /y $(ROOT)\..\web\release\web\*.js.map $(ROOT)\src\developer\tike\xml\kmw\resource\ #
|
|
xcopy /y $(ROOT)\..\web\LICENSE $(ROOT)\src\developer\tike\xml\kmw\resource\ #
|
|
xcopy /y $(ROOT)\..\web\README.md $(ROOT)\src\developer\tike\xml\kmw\resource\ #
|
|
xcopy /s /y $(ROOT)\..\web\release\web\osk\* $(ROOT)\src\developer\tike\xml\kmw\resource\osk\ #
|
|
xcopy /s /y $(ROOT)\..\web\release\web\ui\* $(ROOT)\src\developer\tike\xml\kmw\resource\ui\ #
|
|
|
|
icons:
|
|
rc icons.rc
|
|
|
|
clean: def-clean
|
|
if exist icons.res del icons.res
|
|
|
|
signcode:
|
|
$(SIGNCODE) /d "Keyman Developer" $(PROGRAM)\developer\tike.exe
|
|
|
|
backup:
|
|
$(WZZIP) $(BUILD)\developer\tike.zip $(BACKUPDEFAULTS) tike.exe
|
|
|
|
|
|
install:
|
|
$(COPY) $(PROGRAM)\developer\tike.exe "$(INSTALLPATH_KEYMANDEVELOPER)\tike.exe"
|
|
|
|
test-manifest:
|
|
# test that linked manifest exists and correct
|
|
$(MT) -nologo -inputresource:$(PROGRAM)\developer\tike.exe -validate_manifest
|
|
|
|
!include ..\..\Target.mak
|
|
|