-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 731 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 731 Bytes
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
# Copyright 2019 6WIND S.A.
PYTHON := python3
DIST_DIR := dist
DEPS := ""
clean:
find . -name "*.py[co]" -exec rm '{}' \;
rm -rf *.egg-info/ dist/ build/
sdist:
$(PYTHON) ./setup.py sdist --dist-dir=${DIST_DIR}
rpm:
@for file in $$(cat rpm_deps.txt); do \
DEPS+=" $$file"; \
done; \
$(PYTHON) ./setup.py bdist_rpm --binary-only --post-install post_install.sh --post-uninstall post_remove.sh --requires "$${DEPS}" --dist-dir=${DIST_DIR}
build:
$(PYTHON) ./setup.py build ${ARGS}
install:
$(PYTHON) ./setup.py install ${ARGS}
develop:
$(PYTHON) ./setup.py develop
missing_licenses:
git grep -LiI "Copyright .* 6WIND S.A." | grep -v "^\."
.PHONY: clean sdist bdist_rpm build install missing_licenses dist develop