Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/zamtmn/zcad
Browse files Browse the repository at this point in the history
  • Loading branch information
zamtmn committed Jan 7, 2025
2 parents 0bf68e0 + 8e3b275 commit d6c0bcb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ endif

LAZBUILD:=$(LP)$(PATHDELIM)lazbuild

ZP:=
$(if $(wildcard $(LAZBUILD)),$(shell $(LAZBUILD) --pcp=$(PCP) cad_source$(PATHDELIM)zcad.lpi --get-expand-text=$$\(ProjPath\)..$(PATHDELIM)cad$(PATHDELIM)bin$(PATHDELIM)$$\(TargetCPU\)-$$\(TargetOS\)),$())
ZP:=$(if $(wildcard $(LAZBUILD)),$(shell $(LAZBUILD) --pcp=$(PCP) cad_source$(PATHDELIM)zcad.lpi --get-expand-text=$$\(ProjPath\)..$(PATHDELIM)cad$(PATHDELIM)bin$(PATHDELIM)$$\(TargetCPU\)-$$\(TargetOS\)),$())

checkallvars: checkvars
@echo OSDETECT=$(OSDETECT)
Expand Down Expand Up @@ -156,7 +155,7 @@ replaceinstallprefix:
ifeq ($(OSDETECT),WIN32)
powershell -ex bypass -c "(Get-Content -Path 'cad\cfg\configs\config.xml') -replace 'NeedReplaceToDistribPath','$(INSTALLPREFIX)' | Set-Content -Path 'cad\cfg\configs\config.xml'"
else
sed -i "s/NeedReplaceToDistribPath/$(INSTALLPREFIX)/g" cad\cfg\configs\config.xml
sed -i "s/NeedReplaceToDistribPath/$(shell printf '%s' "$(INSTALLPREFIX)" | sed 's/[]\/$*.^[]/\\&/g')/g" cad/cfg/configs/config.xml
endif

zcadelectrotechenv: checkvars
Expand Down

0 comments on commit d6c0bcb

Please sign in to comment.