Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild when external dependencies change #35

Merged
merged 1 commit into from May 22, 2014
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Rebuild when external dependencies change

Depends on mozilla/servo #2472.
  • Loading branch information
mbrubeck committed May 22, 2014
commit 0761fcb4c45fe9b39a3500650f2b2e264e59e487
@@ -6,14 +6,15 @@ CFLAGS += -fPIC -I$(VPATH)/../libpng
AR ?= ar
RUSTC ?= rustc
RUSTFLAGS := $(filter-out -O,$(RUSTFLAGS)) -L ../libpng --opt-level=3
EXT_DEPS ?=

.PHONY: all
all: librustpng.dummy

%.o: %.c
$(CC) $< -o $@ -c $(CFLAGS)

librustpng.dummy: lib.rs libshim.a
librustpng.dummy: lib.rs libshim.a $(EXT_DEPS)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.