Skip to content

Instantly share code, notes, and snippets.

@ywake

ywake/Makefile Secret

Created March 23, 2024 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ywake/5ff0918724c34bf0322893b9e83ac21f to your computer and use it in GitHub Desktop.
Save ywake/5ff0918724c34bf0322893b9e83ac21f to your computer and use it in GitHub Desktop.
Makefile for flutter
-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