-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
84 lines (63 loc) · 1.2 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
###
### Variables
###
SHELL = /bin/sh
MKDIR_P = mkdir -p
# If ./configure has been run, include configure.in
ifneq ("$(wildcard configure.in)","")
include configure.in
endif
# 'test' directory exists, therefore force make to run test
.PHONY: test
###
### Help
###
help:
@echo Options
@echo " make test"
@echo " Test awesome-ci scripts"
@echo ""
@echo " make install"
@echo " Install everthing (requires sudo or root)"
@echo ""
@echo " make clean"
@echo " Clean build"
@echo ""
@echo " make docker"
@echo " Build docker image"
@echo ""
@echo " make help"
@echo " Show this help screen"
###
### Install
###
install:
ifeq ("$(wildcard configure.in)","")
$(error Not configured, run ./configure)
false
endif
@echo "Installing files"
@echo ""
@# Create directories
${MKDIR_P} $(BINDIR)
@# Install binary
install -m 0755 dependencies/* $(BINDIR)/
install -m 0755 bin/* $(BINDIR)/
@echo "Installation complete:"
@echo "----------------------------------------------------------------------"
@echo ""
###
### Clean
###
clean:
rm -f configure.in
###
### Build docker image
###
docker:
docker build -t cytopia/awesome-ci .
###
###
###
test:
./test/test.sh