-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (29 loc) · 1015 Bytes
/
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
ROOT=/
PREFIX=/usr
ANSIBLE_BRANCH=master
install:
# Cleanup temporary files
rm -f INSTALLED_FILES
# Use Python setuptools
python setup.py build ; python ./setup.py install -O1 --prefix="${PREFIX}" --root="${ROOT}" --record=INSTALLED_FILES
install3:
# Cleanup temporary files
rm -f INSTALLED_FILES
# Use Python setuptools
python3 setup.py build ; python3 ./setup.py install -O1 --prefix="${PREFIX}" --root="${ROOT}" --record=INSTALLED_FILES
clean: clean-rpm
find . -iname '*.pyc' -type f -delete
find . -iname '__pycache__' -exec rm -rf '{}' \; | true
clean-rpm:
rm -rf rpmbuild
e2e-localhost-cleanup: .e2e/ansible-fetch
cd .e2e/ansible ; ansible-playbook -i inventory/localhost e2e-pre-test-cleanup.yml
.e2e/ansible:
git clone https://gitlab.ci.csc.fi/dpres/ansible-preservation-system.git .e2e/ansible
.e2e/ansible-fetch: .e2e/ansible
cd .e2e/ansible ; \
git fetch ; \
git checkout $(ANSIBLE_BRANCH) ; \
git reset --hard origin/$(ANSIBLE_BRANCH) ; \
git clean -fdx ; \
git status