rust-postgres/Makefile
2013-09-02 19:08:56 -07:00

21 lines
382 B
Makefile

RUSTC ?= rustc
RUSTFLAGS += -L. --cfg debug -Z debug-info
.PHONY: all
all: postgres.dummy
postgres.dummy: src/lib.rs src/message.rs src/types.rs
$(RUSTC) $(RUSTFLAGS) --lib src/lib.rs --out-dir .
touch $@
.PHONY: check
check: check-postgres
check-postgres: postgres.dummy src/test.rs
$(RUSTC) $(RUSTFLAGS) --test src/test.rs -o $@
./$@
.PHONY: clean
clean:
git clean -dfx