rust-postgres/Makefile
Steven Fackler a00843751e Parse Notice/Error SQLSTATE codes
The enum is stuck inside of an extra module due to mozilla/rust#4375.
2013-09-14 21:37:20 -07:00

21 lines
395 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 src/error.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