Make Makefile variables early evaluated

This commit is contained in:
Steven Fackler 2014-02-10 20:21:21 -08:00
parent 7c1de97cbf
commit a88b7c0e3c
1 changed files with 7 additions and 7 deletions

View File

@ -1,11 +1,11 @@
RUSTC = rustc
BUILDDIR = build
RUSTFLAGS = -O -g --cfg ndebug
INSTALL_DIR = %PREFIX%
RUSTC := rustc
BUILDDIR := build
RUSTFLAGS := -O -g --cfg ndebug
INSTALL_DIR := %PREFIX%
OPENSSL_LIB = lib.rs
OPENSSL = $(foreach file,$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
OPENSSL_TEST = $(BUILDDIR)/$(shell $(RUSTC) --test --crate-file-name $(OPENSSL_LIB))
OPENSSL_LIB := lib.rs
OPENSSL := $(foreach file,$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
OPENSSL_TEST := $(BUILDDIR)/$(shell $(RUSTC) --test --crate-file-name $(OPENSSL_LIB))
all: $(OPENSSL)