-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
46 lines (35 loc) · 1.01 KB
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
43
44
45
46
# Copyright (c) 2019, Sylabs Inc. All rights reserved.
# Copyright (c) 2020, Geoffroy Vallee. All rights reserved.
# This software is licensed under a 3-clause BSD license. Please consult the
# LICENSE.md file distributed with the sources of this project regarding your
# rights to use or distribute this software.
all: sympi sycontainerize syrun
checkenv-%:
@ if [ "${${*}}" = "" ]; then \
echo "Environment variable $* is not set"; \
exit 1; \
fi
check: checkenv-GOPATH
syrun:
cd cmd/syrun; go build syrun.go
sympi: cmd/sympi/sympi.go
cd cmd/sympi; go build sympi.go
sycontainerize:
cd cmd/sycontainerize; go build sycontainerize.go
install: check all
go install ./...
@cp -f cmd/sympi/sympi_init ${GOPATH}/bin
@cp -rf etc ${GOPATH}
test: install
go test ./...
uninstall: check
@rm -f $(GOPATH)/bin/sympi \
$(GOPATH)/bin/sycontainerize
clean:
@rm -f main
@rm -f cmd/sympi/sympi \
cmd/syrun/syrun \
cmd/sympi/main \
cmd/sycontainerize/sycontainerize \
cmd/sycontainerize/main
distclean: clean