From 91364230a6d3d5067f135932d1bce986666ad78c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 27 Aug 2017 22:25:06 +0100 Subject: [PATCH] Copy lib to out dir on build --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 39d607b..21fb51f 100644 --- a/Makefile +++ b/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