-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile.am
51 lines (34 loc) · 1.33 KB
/
Makefile.am
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
43
44
45
46
47
48
49
50
51
# version first -- they are parsed LTR and later options depend on automake 1.8
AUTOMAKE_OPTIONS = 1.8 dist-bzip2 no-dist-gzip
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = morituri bin etc doc m4 misc
EXTRA_DIST = morituri.spec morituri.doap RELEASE README.md HACKING REVISION
SOURCES = $(top_srcdir)/morituri/*.py $(top_srcdir)/morituri/*/*.py
check: pychecker check-python
check-python:
PYTHONPATH=$(PYTHONPATH):$(top_srcdir) trial morituri.test
_trial_temp/coverage: $(top_srcdir)/morituri/*.py $(top_srcdir)/morituri/*/*.py
trial --coverage morituri.test
coverage: _trial_temp/coverage
$(PYTHON) misc/show-coverage.py `ls _trial_temp/coverage/morituri* | grep -v morituri.test | grep -v morituri.extern`
pep8:
for file in $(SOURCES); do $(PYTHON) misc/pep8.py --repeat $$file; done
clean-local:
@rm -rf _trial_temp
PYCHECKER_WHITELIST = \
morituri/*.py \
morituri/*/*.py
PYCHECKER_BLACKLIST = \
morituri/common/taskgtk.py \
morituri/extern/asyncsub.py \
morituri/extern/log/log.py
release: dist
make $(PACKAGE)-$(VERSION).tar.bz2.md5
REVISION: $(top_srcdir)/.git morituri/common/common.py
$(PYTHON) -c 'from morituri.configure import configure; print configure.revision' > REVISION
# generate md5 sum files
%.md5: %
md5sum $< > $@
include $(top_srcdir)/m4/pychecker.mk
all-local:
if test -e $(top_srcdir)/.git; then make REVISION; fi