-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
67 lines (46 loc) · 1.65 KB
/
Makefile.am
File metadata and controls
67 lines (46 loc) · 1.65 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (C) 2007 by Lingit AS
#
# $Id: Makefile.am 299 2007-06-20 19:35:26Z mtr $
#
SUBDIRS = src doc etc statistics www #lib/
#EXTRA_DIST = src/*.py #lib/
include ${top_srcdir}/secretdefs.mk # _Never_ commit that file with real values.
include ${top_srcdir}/extradefs.mk
ignore_in = Makefile.in MANIFEST.in
in_src = $(filter-out $(ignore_in),$(wildcard *.in))
generated = $(in_src:.in=)
$(generated): $(in_src) Makefile $(top_srcdir)/extradefs.mk
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
CLEANFILES = $(generated)
pysetyp = setup.py
GET_RELEASE = $(top_srcdir)/bin/get_release
RELEASE := $(shell $(GET_RELEASE))
DISTDIR = $(top_srcdir)/dist
all: $(generated) all-recursive
release:
$(top_srcdir)/bin/increase_release
next_release:
$(top_srcdir)/bin/increase_release
tag_release:
$(top_srcdir)/bin/tag_release
#rpm: all release tag_release changelog $(pysetyp)
rpm: all release tag_release $(pysetyp)
@python $(pysetyp) clean
@python $(pysetyp) bdist_rpm --python=$(PYTHON) --release=$(RELEASE) --post-install=$(top_srcdir)/src/post-install.sh --pre-uninstall=$(top_srcdir)/src/pre-uninstall.sh
deb_sign: deb
pushd $(DISTDIR) && dpkg-sig --sign builder $(PACKAGE)_$(VERSION)-$(RELEASE)_all.deb && popd
deb: rpm
pushd $(DISTDIR) && EMAIL="mtr@ranang.org" fakeroot alien --veryverbose --to-deb --keep-version --scripts $(PACKAGE)-$(VERSION)-$(RELEASE).noarch.rpm && popd
tests:
PYTHONPATH=$(top_srcdir)/lib pytest test
etags:
etags \
src/* \
$$(find lib -name \*\.py |tr '\n' ' ')
#changelog:
# svn2cl --break-before-msg --group-by-day --authors=AUTHORS