Skip to content

Commit

Permalink
Adjust Servo Makefile for changed codegen path
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbergstrom committed Apr 15, 2014
1 parent 76a9cb0 commit 80ef656
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile.servo.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ libhttp_files=$(shell find $(VPATH)/src/http/ -type f -name '*.rs') \

all: libhttp.dummy

codegen: $(wildcard $(VPATH)/src/http/codegen/*.rs)
$(RUSTC) $(HOST_RUSTFLAGS) $(VPATH)/src/http/codegen/codegen.rs -o codegen
codegen: $(wildcard $(VPATH)/src/codegen/*.rs)
$(RUSTC) $(HOST_RUSTFLAGS) $(VPATH)/src/codegen/main.rs -o codegen

$(VPATH)/src/http/generated/%.rs: codegen
$(VPATH)/src/http/generated:
mkdir -p $(VPATH)/src/http/generated

$(VPATH)/src/http/generated/%.rs: codegen $(VPATH)/src/http/generated/
./codegen $(patsubst $(VPATH)/src/http/generated/%,%,$@) $(VPATH)/src/http/generated/

libhttp.dummy: $(libhttp_files)
Expand Down

0 comments on commit 80ef656

Please sign in to comment.