Skip to content

Commit

Permalink
Adapts Makefile and stage.sh for subtree'd ddlog
Browse files Browse the repository at this point in the history
  • Loading branch information
netj committed Jan 23, 2017
1 parent 0366009 commit 2edce54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,15 @@ build:
util/build/generate-build-info.sh >$(BUILD_INFO)

# build DimmWitted
build: inference/dimmwitted/dw
.PHONY build: inference/dimmwitted/dw
inference/dimmwitted/dw:
$(@D).build.sh

# build DDlog compiler
.PHONY build: compiler/ddlog/ddlog.jar
compiler/ddlog/ddlog.jar:
$(@D).build.sh

# ensure some submodules required by stage.sh is there
build: \
extern/buildkit/install-shared-libraries-required-by \
Expand Down Expand Up @@ -189,7 +194,6 @@ checkstyle:

# submodules to build and the files to copy out from each of them
include util/build/build-submodules.mk
$(call BUILD_SUBMODULE_AND_COPY, compiler/ddlog , target/scala-2.11/ddlog-assembly-0.1-SNAPSHOT.jar )
$(call BUILD_SUBMODULE_AND_COPY, runner/mkmimo , mkmimo )
ifndef NO_MINDBENDER
$(call BUILD_SUBMODULE_AND_COPY, util/mindbender , @prefix@/ )
Expand All @@ -203,6 +207,6 @@ build-dimmwitted: inference/dimmwitted/dw
.PHONY: build-mindbender
build-mindbender: build-submodule-mindbender
.PHONY: build-ddlog
build-ddlog: build-submodule-ddlog
build-ddlog: compiler/ddlog/ddlog.jar
.PHONY: build-mkmimo
build-mkmimo: build-submodule-mkmimo
2 changes: 1 addition & 1 deletion stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ stage compiler/compile-code util/
stage compiler/compile-codegen util/

stage compiler/ddlog-wrapper.sh bin/ddlog
stage .build/submodule/compiler/ddlog/target/scala-2.11/ddlog-assembly-0.1-SNAPSHOT.jar lib/ddlog.jar
stage compiler/ddlog/ddlog.jar lib/ddlog.jar
stage compiler/hocon2json util/

# DeepDive execution planner and runner
Expand Down

0 comments on commit 2edce54

Please sign in to comment.