This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathMakefile
83 lines (65 loc) · 2.88 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
82
83
#
# Glewlwyd OAuth2 Authorization Server
#
# Makefile used to build the software
#
# Copyright 2016-2019 Nicolas Mora <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU GENERAL PUBLIC LICENSE
# License as published by the Free Software Foundation;
# version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU GENERAL PUBLIC LICENSE for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program. If not, see <http://www.gnu.org/licenses/>.
#
GLEWLWYD_SOURCE=./src
GLEWLWYD_TESTS=./test
GLEWLWYD_DOCS=./docs
GLEWLWYD_DOCKER=./docs/docker
all:
cd $(GLEWLWYD_SOURCE) && $(MAKE) $*
debug:
cd $(GLEWLWYD_SOURCE) && $(MAKE) debug $*
install:
cd $(GLEWLWYD_SOURCE) && $(MAKE) install $*
memcheck:
cd $(GLEWLWYD_SOURCE) && $(MAKE) memcheck $*
test-debug:
cd $(GLEWLWYD_SOURCE) && $(MAKE) test-debug $*
check:
cd $(GLEWLWYD_TESTS) && $(MAKE) test $*
clean:
cd $(GLEWLWYD_SOURCE) && $(MAKE) clean
cd $(GLEWLWYD_TESTS) && $(MAKE) clean
cd $(GLEWLWYD_DOCKER) && $(MAKE) clean
docker rmi -f babelouest/glewlwyd:src babelouest/glewlwyd:ci
docker system prune -f
docs/docker/orcania.tar.gz:
wget https://github.com/babelouest/orcania/archive/refs/heads/master.tar.gz -O docs/docker/orcania.tar.gz
docs/docker/yder.tar.gz:
wget https://github.com/babelouest/yder/archive/refs/heads/master.tar.gz -O docs/docker/yder.tar.gz
docs/docker/ulfius.tar.gz:
wget https://github.com/babelouest/ulfius/archive/refs/heads/master.tar.gz -O docs/docker/ulfius.tar.gz
docs/docker/hoel.tar.gz:
wget https://github.com/babelouest/hoel/archive/refs/heads/master.tar.gz -O docs/docker/hoel.tar.gz
docs/docker/rhonabwy.tar.gz:
wget https://github.com/babelouest/rhonabwy/archive/refs/heads/master.tar.gz -O docs/docker/rhonabwy.tar.gz
docs/docker/iddawc.tar.gz:
wget https://github.com/babelouest/iddawc/archive/refs/heads/master.tar.gz -O docs/docker/iddawc.tar.gz
docker: docs/docker/orcania.tar.gz docs/docker/yder.tar.gz docs/docker/ulfius.tar.gz docs/docker/hoel.tar.gz docs/docker/rhonabwy.tar.gz docs/docker/iddawc.tar.gz
docker build --file=Dockerfile -t babelouest/glewlwyd:src .
docker-run:
docker run --rm -it -p 4593:4593 babelouest/glewlwyd:src
docker-ci: docs/docker/orcania.tar.gz docs/docker/yder.tar.gz docs/docker/ulfius.tar.gz docs/docker/hoel.tar.gz docs/docker/rhonabwy.tar.gz docs/docker/iddawc.tar.gz
docker build --file=Dockerfile-ci -t babelouest/glewlwyd:ci .
docker-ci-run:
docker run --rm -it -p 4593:4593 babelouest/glewlwyd:ci
manpage:
cd $(GLEWLWYD_SOURCE) && $(MAKE) $*
help2man $(GLEWLWYD_SOURCE)/glewlwyd -s 8 -n "Single-Sign-On (SSO) server with multiple factor authentication" > $(GLEWLWYD_DOCS)/glewlwyd.8