-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
42 lines (31 loc) · 2.18 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
CHANGELOG_YML = $(wildcard changelog/*.yml)
CHANGELOG_MD = $(patsubst %.yml, docs/source/%.md, $(CHANGELOG_YML))
autogen = src/commcare_cloud/help_cache/ansible.txt src/commcare_cloud/help_cache/ansible-playbook.txt docs/source/reference/1-commcare-cloud/commands.md docs/source/changelog/index.md src/commcare_cloud/ansible/roles/ebsnvme/files/_vendor/ebsnvme-id $(CHANGELOG_MD)
all : $(autogen)
REQUIREMENTS=requirements.txt
PIP_COMPILE = pip-compile --output-file ${REQUIREMENTS} setup.py
ANSIBLE_ENV=COLUMNS=80
src/commcare_cloud/help_cache/ansible.txt: export ANSIBLE_CONFIG=src/commcare_cloud/ansible/ansible.cfg
src/commcare_cloud/help_cache/ansible.txt:
$(ANSIBLE_ENV) ansible -h > src/commcare_cloud/help_cache/ansible.txt
src/commcare_cloud/help_cache/ansible-playbook.txt: export ANSIBLE_CONFIG=src/commcare_cloud/ansible/ansible.cfg
src/commcare_cloud/help_cache/ansible-playbook.txt:
$(ANSIBLE_ENV) ansible-playbook -h > src/commcare_cloud/help_cache/ansible-playbook.txt
docs/source/reference/1-commcare-cloud/commands.md : src/commcare_cloud/* src/commcare_cloud/*/* src/commcare_cloud/*/*/*
manage-commcare-cloud make-docs > docs/source/reference/1-commcare-cloud/commands.md
docs/source/changelog/%.md : changelog/%.yml src/commcare_cloud/manage_commcare_cloud/*
manage-commcare-cloud make-changelog $< > $@
docs/source/changelog/index.md : changelog/*.yml src/commcare_cloud/manage_commcare_cloud/*
manage-commcare-cloud make-changelog-index > docs/source/changelog/index.md
requirements: setup.py
$(PIP_COMPILE)
upgrade-requirements: setup.py
$(PIP_COMPILE) --upgrade
src/commcare_cloud/ansible/roles/ebsnvme/files/_vendor/ebsnvme-id:
curl https://gist.githubusercontent.com/lbernail/d851e5b06eb32180a4b8ead2ce4f45db/raw/07772083fa1c2e567ed422eb401ac7783487d1c7/ebsnvme-id \
> src/commcare_cloud/ansible/roles/ebsnvme/files/_vendor/ebsnvme-id.raw
echo "3437393d3f0ba1088bc18db5bdc5e73d2cedd96fd39a086f2c5e5f061b955f58 src/commcare_cloud/ansible/roles/ebsnvme/files/_vendor/ebsnvme-id.raw" \
| shasum -a256 -c - \
&& mv src/commcare_cloud/ansible/roles/ebsnvme/files/_vendor/ebsnvme-id.raw src/commcare_cloud/ansible/roles/ebsnvme/files/_vendor/ebsnvme-id
clean:
rm -f $(autogen)