-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (28 loc) · 1.33 KB
/
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
.PHONY: build build-in-local
BUILD := cargo build --release
MOVETO_MAIN := sudo mv target/release/markdown2pdf /usr/bin/markdown2pdf
MOVETO_LOCAL := sudo mv target/release/markdown2pdf /usr/local/bin/markdown2pdf
build:
@echo " ------------------------------- "
@echo "| Running cargo build --release |"
@echo " ------------------------------- "
@$(BUILD)
@echo " ------------------------------------------------ "
@echo "| Build Completed! Moving executable to base bin |"
@echo " ------------------------------------------------ "
@$(MOVETO_MAIN)
@echo " ------------------------------------------------------------ "
@echo "| Moved target/release/markdown2pdf to /usr/bin/markdown2pdf |"
@echo " ------------------------------------------------------------ "
build-in-local:
@echo " ------------------------------- "
@echo "| Running cargo build --release |"
@echo " ------------------------------- "
@$(BUILD)
@echo " ------------------------------------------------ "
@echo "| Build Completed! Moving executable to base bin |"
@echo " ------------------------------------------------ "
@$(MOVETO_LOCAL)
@echo " ------------------------------------------------------------------ "
@echo "| Moved target/release/markdown2pdf to /usr/local/bin/markdown2pdf |"
@echo " ------------------------------------------------------------------ "