diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-07-02 12:50:24 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-07-02 12:50:24 +0300 |
commit | d6a28ead848320a4597bfaa9f6d169221b88c479 (patch) | |
tree | 7f3ad8c32c40f6cc76ae910574258583efc7ec91 /Makefile | |
parent | 6936ce11a791f4afe7873e74a37aaecb4723191f (diff) |
Update Makefile with a release target, and an install and install-release target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -1,6 +1,31 @@ -all: +PLUGINS_DIR ?= $(shell pkg-config --variable=pluginsdir gstreamer-1.0) + +OS=$(shell uname -s) +ifeq ($(OS),Linux) + SO_SUFFIX=so +else +ifeq ($(OS),Darwin) + SO_SUFFIX=dylib +else + # FIXME: Bad hack, how to know we're on Windows? + SO_SUFFIX=dll +endif +endif + +all: debug + +debug: cargo build --all +release: + cargo build --all --release + +install: debug + install target/debug/*.$(SO_SUFFIX) $(PLUGINS_DIR) + +install-release: release + install target/release/*.$(SO_SUFFIX) $(PLUGINS_DIR) + clean: cargo clean |