uplink-sys 0.1.1

Unsafe rust bindings for libuplink - the storj protocol library.
UPLINK_C = uplink-c

.PHONY: default
default: build

.PHONY: build
build: $(UPLINK_C)/.git
	cargo build

.PHONY: test
test: $(UPLINK_C)/.git
	cargo test

.PHONY: publish-test
publish-test: $(UPLINK_C)/.git
	cargo publish --dry-run -vv

.PHONY: _publish-crate
_publish-crate: $(UPLINK_C)/.git
	cargo publish

# Checkout uplink-c submodule if it hasn't been checked out yet
$(UPLINK_C)/.git:
	git submodule update --init

.PHONY: clean
clean:
	cargo clean