Skip to content

Commit

Permalink
Makefile mac: fixed bundling
Browse files Browse the repository at this point in the history
fixed when lib exists but is an empty dir

Also it seems that 'cond && consequent' syntax was incorrect here,
because if cond is false, it stops current make target.
  • Loading branch information
MartinPulec committed Jun 30, 2023
1 parent 3c5c08d commit ac98d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ $(GUI_BUNDLE)/Contents/libs: $(BUNDLE)/Contents/libs $(GUI_BUNDLE)
$(MKDIR_P) $(GUI_BUNDLE)/Contents/Frameworks $(GUI_BUNDLE)/Contents/libs
echo quit | $(DYLIBBUNDLER) $(DYLIBBUNDLER_FLAGS) -of -p @executable_path/../libs/ -cd -b -x $(GUI_BUNDLE)/Contents/MacOS/uv-qt -d $(GUI_BUNDLE)/Contents/libs/; \
cp $(BUNDLE)/Contents/MacOS/* $(GUI_BUNDLE)/Contents/MacOS/
[ -d $(BUNDLE)/Contents/libs ] && cp $(BUNDLE)/Contents/libs/* $(GUI_BUNDLE)/Contents/libs
[ "$$(printf $(BUNDLE)/Contents/libs/*)" = $(BUNDLE)'/Contents/libs/*' '] || cp $(BUNDLE)/Contents/libs/* $(GUI_BUNDLE)/Contents/libs
[ -d $(BUNDLE)/Contents/share ] && { mkdir -p $(GUI_BUNDLE)/Contents/share; cp -r $(BUNDLE)/Contents/share/* $(GUI_BUNDLE)/Contents/share; }
cp -R $(BUNDLE)/Contents/Frameworks/* $(GUI_BUNDLE)/Contents/Frameworks
# add Qt frameworks
Expand Down

0 comments on commit ac98d99

Please sign in to comment.