Support out-of-tree builds

This commit is contained in:
Brian Anderson
2012-05-05 15:00:31 -07:00
parent 366431264d
commit 6652463211
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -8,3 +8,4 @@
*.dll
*.dummy
cocoa-test
build
+3 -1
View File
@@ -1,9 +1,11 @@
VPATH=%VPATH%
CC ?= gcc
RUSTC ?= rustc
AR ?= ar
RUSTFLAGS ?=
RUST_SRC = $(shell find . -type f -name '*.rs')
RUST_SRC = $(shell find $(VPATH)/. -type f -name '*.rs')
.PHONY: all
all: libcocoa.dummy
Vendored
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
sed "s/%VPATH%/`dirname $0`/" `dirname $0`/Makefile.in > Makefile