-
-
Save ywake/5ff0918724c34bf0322893b9e83ac21f to your computer and use it in GitHub Desktop.
Makefile for flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-include colors.mk | |
init: colors.mk flavor model | |
icon: | |
dart run flutter_launcher_icons:main | |
splash: | |
dart run flutter_native_splash:create | |
model: | |
dart run build_runner build --delete-conflicting-outputs | |
flavor: | |
dart run flutter_flavorizr | |
reset-pod-%: | |
@DIR=$*; printf "$(BLD)$(CYAN)Resetting pod for $$DIR$(END)\n"; \ | |
$(RM) $$DIR/Podfile.lock; \ | |
cd $$DIR; pod install --repo-update; pod update | |
re: reset-pod-ios reset-pod-macos | |
flutter clean | |
flutter pub get | |
colors.mk: | |
curl -L https://gist.githubusercontent.com/ywake/bb8fdd0ec9d6de6325ca8540b71138bc/raw/colors.mk -o colors.mk | |
.PHONY: init icon splash model flavor reset-pod-% re |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment