-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 831 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 831 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
# A GNU Makefile to run various tasks - compatibility for us old-timers.
# Note: This makefile include remake-style target comments.
# These comments before the targets start with #:
# remake --tasks to shows the targets and the comments
GIT2CL ?= admin-tools/git2cl
PYTHON ?= python3
RM ?= rm
.PHONY: \
check clean dist distclean test rmChangeLog flake8
#: Clean up temporary files
clean:
find . | grep -E '\.pyc' | xargs rm -rvf;
find . | grep -E '\.pyo' | xargs rm -rvf;
$(PYTHON) ./setup.py $@
#: Make distirbution: wheels, eggs, tarball
dist:
./admin-tools/make-dist.sh
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog
git log --pretty --numstat --summary | $(GIT2CL) >$@
patch ChangeLog < ChangeLog-spell-corrected.diff
#: Remove ChangeLog
rmChangeLog:
$(RM) ChangeLog || true