Copy lib to out dir on build
This commit is contained in:
parent
a105907ce6
commit
91364230a6
1 changed files with 10 additions and 2 deletions
12
Makefile
12
Makefile
|
@ -6,6 +6,15 @@ WKTOX_VERSION=0.12.4
|
|||
PANDOC_DL=pandoc-${PANDOC_VERSION}-1-amd64.deb
|
||||
WKTOX_DL=wkhtmltox-${WKTOX_VERSION}_linux-generic-amd64.tar.xz
|
||||
|
||||
|
||||
build:
|
||||
@cargo build
|
||||
cp $(LIB_DIR)/* target/debug/
|
||||
|
||||
release:
|
||||
@cargo build --release
|
||||
cp $(LIB_DIR)/* target/release/
|
||||
|
||||
lib_path:
|
||||
@rm -rf $(LIB_DIR)
|
||||
@mkdir -p $(LIB_DIR)
|
||||
|
@ -24,5 +33,4 @@ wktox: lib_path
|
|||
|
||||
lib: pandoc wktox
|
||||
|
||||
.PHONY: pandoc lib_path wktox
|
||||
|
||||
.PHONY: build pandoc lib_path wktox
|
||||
|
|
Reference in a new issue