Commit d6a28ead authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Update Makefile with a release target, and an install and install-release target

parent 6936ce11
Pipeline #46045 passed with stages
in 31 minutes and 15 seconds
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment