forked from AlexanderARodin/webapp_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 885 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
41
42
43
44
45
46
47
48
49
50
51
52
binname="webapp_template"
help:
@cat Makefile
edit:
@nvim ./src/example_view.rs
edit.app:
@nvim ./src/root_app.rs
edit.main:
@nvim ./src/main.rs
all: release trunk.release savetogit
trunk.release:
@trunk build --release
serve:
@trunk serve
run: release size
@./target/release/$(binname)
release:
@cargo rustc --release -- -C prefer-dynamic
test:
@cargo test
size:
@ls -lAh ./target/release/$(binname)
path:
export LD_LIBRARY_PATH='/home/configurator/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib'
to.release:
@git checkout release
to.dev:
@git checkout dev
merge.dev:
@git merge dev
pull:
@git pull
savetogit: git.pushall
git.pushall: git.commitall
@git push
git.commitall: git.addall
@if [ -n "$(shell git status -s)" ] ; then git commit -m 'saving'; else echo '--- nothing to commit'; fi
git.addall:
@git add .
clean:
@cargo clean
@trunk clean