-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 833 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 833 Bytes
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
# TODO add api-server once the matrix library issue has been solved
GO_PROJECTS=crawld featscomp ght2dm repotool srcanlzr srctool
# TODO add srccat once it gets a makefile
PROJECTS=crawld featscomp ght2dm repotool srcanlzr srctool
build:
for p in ${PROJECTS}; do GOPATH=${CURDIR}/build make -C $$p build; done
deps:
test -d build || mkdir build
for p in ${GO_PROJECTS}; do GOPATH=${CURDIR}/build go get -u github.com/DevMine/$$p; done
for p in ${PROJECTS}; do GOPATH=${CURDIR}/build make -C $$p deps; done
install: build
test -d bin || mkdir bin
for p in ${GO_PROJECTS}; do GOPATH=${CURDIR}/build GOBIN=${CURDIR}/bin make -C $$p install; done
clean:
rm -rf build
submodules-init:
git submodule update --init
submodules-update:
git submodule update --remote
.PHONY: deps build clean submodules-init submodules-update