This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathMakefile.uss
68 lines (57 loc) · 1.71 KB
/
Makefile.uss
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
#
# Copyright (C) 2020 IBM. All Rights Reserved.
#
# See LICENSE.txt file in the root directory
# of this source tree for licensing information.
#
# Makefile for the default z/OS USS make
#
# Author: Daniel Nicolas Gisolfi
uid=`id -u`
no-docker-compose = `type docker-compose 2> /dev/null`
about:
@echo "Processing a z/OS USS make-style Makefile"
init-test:
@python3 -m pip install -r requirements_test.txt
clean: about
-rm -f *.pyc *.pyo *.pyd *\$$py.class
# These two files will be updated by CLAI, we dont want to commit the testing data
-git checkout anonymize.json
-git checkout configPlugins.json
test: about
.IF no-docker-compose
@echo "docker-compose not in $(PATH), running tests locally"
$(MAKE) init-test
@python3 -m pytest $(PWD)/test
.ELSE
@echo "running tests in a docker container"
@docker-compose run clai bash -c "cd /clai && make init-test && python3 -m pytest ./test"
.END
dev: about
.IF no-docker-compose
@echo "docker-compose not in $(PATH), running development script locally"
@python3 develop.py install --path $(PWD)
.ELSE
@echo "running development script in a docker container"
@docker-compose run clai bash -c "cd /clai && python3 develop.py install --path /clai && bash"
.END
install: about
.IF uid == 0
@echo "Installing CLAI with superuser privileges"
./install.sh
.ELSE
@echo "You are not running as the superuser, will preform an install local to your user"
./install.sh --user
.END
uninstall: about
.IF uid == 0
@echo "Unstalling CLAI with superuser privileges"
./uninstall.sh
.ELSE
@echo "You are not running as the superuser, will preform an uninstalling local to your user"
./uninstall.sh --user
.END
MAKE:
intro
install
.PHONY: intro init-test clean test dev install uninstall