Files
rust-postgres/Makefile
Steven Fackler 27bbf6f7fd Pull ToSql and FromSql out into their own module
Their implementations will become significantly more complicated once we
start handling binary data.
2013-08-28 00:37:06 -04:00

21 lines
385 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 -o $@
touch $@
.PHONY: check
check: check-postgres
check-postgres: postgres.dummy src/test.rs
$(RUSTC) $(RUSTFLAGS) --test src/test.rs -o $@
./$@
.PHONY: clean
clean:
rm *.dummy *.so check-*