GEANTLink/MakefileLangPlatCfg.mak
Simon Rozman 5e7f55880a Update Copyright and build year
Signed-off-by: Simon Rozman <simon@rozman.si>
2022-01-07 11:21:33 +01:00

27 lines
2.2 KiB
Makefile

# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright © 1991-2022 Amebis
# Copyright © 2016 GÉANT
CleanSetup ::
-if exist "output\$(LANG).$(PLAT).$(CFG).msi" del /f /q "output\$(LANG).$(PLAT).$(CFG).msi"
-if exist "output\$(LANG).$(PLAT).$(CFG).mst" del /f /q "output\$(LANG).$(PLAT).$(CFG).mst"
"output\$(LANG).$(PLAT).$(CFG).2.msi" ::
cd "MSI\Base"
$(MAKE) /f "Makefile" /$(MAKEFLAGS) LANG=$(LANG) PLAT=$(PLAT) CFG=$(CFG)
cd "$(MAKEDIR)"
"output\$(LANG).$(PLAT).$(CFG).msi" : \
"output\$(LANG).$(PLAT).$(CFG).2.msi" \
"output\$(PLAT).$(CFG).inf"
-if exist $@ del /f /q $@
copy /y "output\$(LANG).$(PLAT).$(CFG).2.msi" "$(@:"=).tmp" > NUL
cscript.exe "MSI\MSIBuild\MSI.wsf" //Job:SetCAB //Nologo "$(@:"=).tmp" "output\$(PLAT).$(CFG).inf"
"$(WINDOWSSDKVERBINPATH)x86\msiinfo.exe" "$(@:"=).tmp" /nologo /U 4
move /y "$(@:"=).tmp" $@ > NUL
"output\$(LANG).$(PLAT).$(CFG).mst" : \
"output\en_US.$(PLAT).$(CFG).msi" \
"output\$(LANG).$(PLAT).$(CFG).msi"
cscript.exe "MSI\MSIBuild\MSI.wsf" //Job:MakeMST //Nologo "output\en_US.$(PLAT).$(CFG).msi" "output\$(LANG).$(PLAT).$(CFG).msi" $@