Files
rust-postgres/Makefile
Steven Fackler 067f2c9f91 Removed sql and sqlite3
I'm going to focus on a postgres driver for now
2013-08-18 17:14:22 -04:00

21 lines
331 B
Makefile

RUSTC ?= rustc
RUSTFLAGS += -L.
.PHONY: all
all: postgres.dummy
postgres.dummy: src/lib.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-*