spiegel-keyman/windows/src/Target.mak
Marc Durdin 4739b92daf fix(developer): kmconvert commandline and deploy
A few fixes and improvements:
* kmconvert was missing a command line parameter for `-target` to
  specify the platform targets for a project
* kmconvert should avoid throwing unhandled exceptions, rather if
  sentry is not present then just write to console.
* Include kmconvert and its data files in the deployment of kmcomp.zip,
  which is done on the build agent (just need to make sure files are
  in the right place here.)
* Side fix: also made sure kmcomp would emit the exception message to
  console if sentry is not present.
2021-05-14 11:00:20 +10:00

82 lines
No EOL
2.7 KiB
Makefile

CLEAN=@-del /S /Q
def-clean:
$(CLEAN) *.err *.stat *.dproj.local *.Build.CppClean.Log *.suo *.jdbg *.dbg *.dcu *.~* *.dsk *.exe *.rsm *.ncb *.opt *.pch *.plg *.aps *.001 *.sbr *.dep *.drc *.bak *.pdb *.lib *.cod *.ilk *.tds vc80.idb *.map *.bsc version.rc version.res manifest.xml manifest.res >nul 2>nul
$(CLEAN) ExcMagic.Debug *.wixpdb *.identcache *.embed.manifest *.embed.manifest.res *.intermediate.manifest error.log >nul 2>nul
versionhistory-app: dirs
$(MAKE) versionhistory-app2
versionhistory-app2:
cd $(ROOT)\src\buildtools
$(MAKE) versionhistory
mkver-app: dirs
cd $(ROOT)\src\buildtools\mkver
$(MAKE)
cd $(ROOT)\src
devtools-app: dirs
cd $(ROOT)\src\buildtools
$(MAKE) devtools
cd $(ROOT)\src
version.res: version.in
$(MKVER_V)
rc version.rc
manifest.res: version.res
$(MKVER_M)
rc manifest.rc
dirs:
@-mkdir $(ROOT)\build\desktop 2>nul
@-mkdir $(ROOT)\build\engine 2>nul
@-mkdir $(ROOT)\build\developer 2>nul
@-mkdir $(ROOT)\build\buildtools 2>nul
@-mkdir $(ROOT)\build\online 2>nul
@-mkdir $(ROOT)\build\support 2>nul
@-mkdir $(ROOT)\build\inst 2>nul
@-mkdir $(ROOT)\bin\developer\samples 2>nul
@-mkdir $(ROOT)\bin\developer\xml 2>nul
@-mkdir $(ROOT)\bin\developer\projects 2>nul
@-mkdir $(ROOT)\bin\developer\projects\templates 2>nul
@-mkdir $(ROOT)\bin\buildtools 2>nul
@-mkdir $(ROOT)\bin\engine 2>nul
@-mkdir $(ROOT)\bin\desktop 2>nul
@-mkdir $(ROOT)\bin\desktop\xml 2>nul
@-mkdir $(ROOT)\bin\support 2>nul
@-mkdir $(ROOT)\bin\online 2>nul
@-mkdir $(ROOT)\bin\inst 2>nul
@-mkdir $(ROOT)\bin\help 2>nul
@-mkdir $(ROOT)\bin\help\desktop 2>nul
@-mkdir $(ROOT)\bin\help\developer 2>nul
@-mkdir $(ROOT)\bin\help\md 2>nul
@-mkdir $(ROOT)\bin\help\md\desktop 2>nul
@-mkdir $(ROOT)\lib 2>nul
@-mkdir $(ROOT)\release 2>nul
@-mkdir $(ROOT)\debug\developer 2>nul
@-mkdir $(ROOT)\debug\buildtools 2>nul
@-mkdir $(ROOT)\debug\engine 2>nul
@-mkdir $(ROOT)\debug\desktop 2>nul
@-mkdir $(ROOT)\debug\support 2>nul
@-mkdir $(ROOT)\debug\online 2>nul
@-mkdir $(ROOT)\debug\inst 2>nul
vcvars32:
vcvars32.bat
# This command injects the current version and tier into the VERSION_WIN and VERSION_TIER defines and then
# calls "make wrap-symbols", but it only runs if the symbols folder exists
!IFNDEF HEADER_MAK
# we don't want this target for Makefiles with Header.mak, as they just call into sub-projects
symbols:
if exist $(KEYMAN_SYMSTOREPATH) \
cmd /C \
for /f %v in ($(KEYMAN_ROOT)\VERSION.md) do \
for /f %t in ($(KEYMAN_ROOT)\TIER.md) do \
$(MAKE) -DVERSION_TIER=%t -DVERSION_WIN=%v wrap-symbols
!ENDIF