An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
alpha-wallet-ios/Makefile

83 lines
2.0 KiB

brew_cmd = brew
bundle_cmd = ./vendor/bundle/gems/bundler-2.2.33/exe/bundle
gem_cmd = gem
bundle_gem = "bundler:2.2.33"
vendor_path = ./vendor/bundle
all: target
@echo "Please specify a target. Please use 'make target' to show targets."
target:
@echo "install_bundle : install the correct version of bundle."
@echo "install_gems : install all the required gems."
@echo "install_pods : install all the cocoapods."
@echo "install_all : install gems then pods."
@echo "check_gems : check to see if all the gems in the Gemfile are installed in the vendor directory."
@echo "bootstrap : install bundle followed by install all."
check_brew:
@$(brew_cmd) --version 1>/dev/null 2>/dev/null; \
if [ $$? -ne 0 ]; then \
echo "Homebrew is not installed. Please install Homebrew."; \
exit 1; \
fi
check_bundle:
@$(bundle_cmd) --version 1>/dev/null 2>/dev/null; \
if [ $$? -ne 0 ]; then \
echo "Bundle does not exist. Please install bundle."; \
exit 1; \
fi
check_gems: check_bundle setup_path
@$(bundle_cmd) check --gemfile=./Gemfile; \
if [ $$? -eq 0 ]; then \
echo "All gems installed."; \
else \
echo "Some or all gemfiles have not been installed. Please use 'make install_gems'."; \
exit 1; \
fi
install_gems: check_bundle setup_path
@$(bundle_cmd) install --jobs=4; \
if [ $$? -ne 0 ]; then \
echo "Error installing."; \
exit 1; \
else \
echo "All gems installed."; \
fi
install_pods: check_gems
@$(bundle_cmd) exec pod install; \
if [ $$? -eq 0 ]; then \
echo "All pods installed."; \
else \
echo "Error installing."; \
exit 1; \
fi
update_pods: check_gems
@$(bundle_cmd) exec pod update; \
if [ $$? -eq 0 ]; then \
echo "All pods updated."; \
else \
echo "Error updating."; \
exit 1; \
fi
bootstrap: install_bundle install_all
install_all: setup_path install_gems install_pods
clean:
rm -rf $(vendor_path)
rm -rf ./Pods/*
release:
fastlane release
setup_path:
@$(bundle_cmd) config path $(vendor_path)
install_bundle:
@$(gem_cmd) install --install-dir=$(vendor_path) $(bundle_gem)