forked from hartwork/image-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 769 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
39
40
41
# -*- makefile -*-
# Copyright (C) 2015 Sebastian Pipping <sebastian@pipping.org>
# Licensed under AGPL v3 or later
PREFIX = /usr/local
DESTDIR = /
PYTHON = python3
all:
check:
py.test --doctest-modules
compile:
$(PYTHON) -m compileall directory_bootstrap image_bootstrap
deb:
debuild -uc -us --lintian-opts --display-info
$(RM) -R build
dist:
$(RM) MANIFEST
./setup.py sdist
install:
./setup.py install --prefix "$(PREFIX)" --root "$(DESTDIR)"
isort:
find -type f -name '*.py' -print0 \
| xargs --null isort \
--project directory_bootstrap \
--project image_bootstrap \
--section-default THIRDPARTY \
-m 4 --indent ' ' \
--atomic
mrproper:
git clean -d -f -x
.PHONY: all check compile deb dist install isort mrproper