-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
42 lines (31 loc) · 922 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
EXPORT_FILE=dart_util
# Export and test the program.
all: mod-export sure clean
# Git add, commit, and push.
git: all format
git add -A
git commit -m '$(m)'
git push
# Format core.
format:
dart format ./lib/src/
# Create an export file.
mod-export:
cd lib; cd flutter_package_exporter; make FILE='$(EXPORT_FILE)'
# Run test harsness.
sure:
dart ./test/test.dart;
# Clean the python caches.
clean:
cd lib/flutter_package_exporter; make clean;
# Install dependencies.
install:
git pull --recurse-submodule
git submodule update --recursive --remote
# Create a new version branch.
new:
git branch $(version); git checkout $(version); git push --set-upstream origin $(version); git checkout master;
uninstall-module:
git submodule deinit -f $(dir) || echo "\nFailed to deinit\n";
rm -rf .git/modules/$(dir) || echo "\nFailed to remove modules\n";
git rm -f $(dir) || echo "\nFailed to remove dir\n";