-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 999 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 999 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
33
34
35
36
# 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: \
ChangeLog-without-corrections \
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 ChangeLog from version control without corrections
ChangeLog-without-corrections:
git log --pretty --numstat --summary | $(GIT2CL) >ChangeLog
#: Remove ChangeLog
rmChangeLog:
$(RM) ChangeLog || true
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog ChangeLog-without-corrections
patch -p0 ChangeLog < ChangeLog-spell-corrected.diff