-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
42 lines (34 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
### Makefile for MindBender -- Stanford Knowledge Base Development Environment
## use BuildKit (https://github.com/netj/buildkit)
PROJECTNAME = Mindbender
GITHUB_REPO = HazyResearch/mindbender
# preparing build dependencies under .depends/
DEPENDSDIR = .depends
# packaging as a executable binary
PACKAGENAME = mindbender
PACKAGEEXECUTES = bin/mindbender
PACKAGEVERSIONSUFFIX := -$(shell uname)-$(shell uname -m)
# list of modules
MODULES += dashboard
MODULES += search
MODULES += depends
MODULES += depends/nodejs
MODULES += gui/backend
MODULES += gui/frontend
MODULES += shell
MODULES += util
# keeping runtime dependencies
RUNTIMEDEPENDSDIR = depends
export DEPENDS_ON_NODE_VERSION = v0.12.2
include buildkit/modules.mk
buildkit/modules.mk:
git submodule update --init
# add symlink to gui/frontend/src when under development (with work-in-progress)
ifneq ($(PACKAGEVERSION=%+WIP:%),$(PACKAGEVERSION))
polish: $(STAGEDIR)/gui/files/src
$(STAGEDIR)/gui/files/src:
relsymlink gui/frontend/src $(STAGEDIR)/gui/files/
endif
# tests
TEST_THROUGH = $(PACKAGENAME) hack
-include buildkit/test-with-bats.mk