prepare.py: fix package-in-list target on linux

parent 6fa9578a
...@@ -118,7 +118,7 @@ all-%: ...@@ -118,7 +118,7 @@ all-%:
\t{generator} WORK/ios-$*/cmake \t{generator} WORK/ios-$*/cmake
package-in-list-%: package-in-list-%:
\tif ! grep -q " $* " <<< " $(packages) "; then \\ \tif ! echo " $(packages) " | grep -q " $* "; then \\
\t\techo "$* not in list of available packages: $(packages)"; \\ \t\techo "$* not in list of available packages: $(packages)"; \\
\t\texit 3; \\ \t\texit 3; \\
\tfi \tfi
...@@ -240,9 +240,9 @@ def main(argv=None): ...@@ -240,9 +240,9 @@ def main(argv=None):
if args.generator == 'Ninja': if args.generator == 'Ninja':
if not check_is_installed("ninja", "it"): if not check_is_installed("ninja", "it"):
return 1 return 1
generate_makefile(selected_platforms, 'ninja -C') generate_makefile('ninja -C')
elif args.generator == "Unix Makefiles": elif args.generator == "Unix Makefiles":
generate_makefile(selected_platforms, '$(MAKE) -C') generate_makefile('$(MAKE) -C')
elif args.generator == "Xcode": elif args.generator == "Xcode":
print("You can now open Xcode project with: open WORK/cmake/Project.xcodeproj") print("You can now open Xcode project with: open WORK/cmake/Project.xcodeproj")
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment