-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
37 lines (28 loc) · 1 KB
/
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
# To use this Makefile, get a copy of my Release Tools
# git clone git://git.code.sf.net/p/sfreleasetools/code releasetools
# or from github:
# git clone https://github.com/schlatterbeck/releasetool.git releasetools
# And point the environment variable RELEASETOOLS to the checkout
README=README.rst
ifeq (,${RELEASETOOLS})
RELEASETOOLS=../releasetools
endif
PKG=asterisk
PY=agi.py agitb.py astemu.py compat.py config.py __init__.py manager.py
SRC=Makefile MANIFEST.in setup.py $(README) README.html \
$(PY:%.py=$(PKG)/%.py)
VERSIONPY=asterisk/Version.py
VERSION=$(VERSIONPY)
LASTRELEASE:=$(shell $(RELEASETOOLS)/lastrelease -n)
USERNAME=schlatterbeck
PROJECT=pyst
PACKAGE=${PROJECT}
all: $(VERSION)
$(VERSION): $(SRC)
clean:
rm -f MANIFEST README.html default.css \
$(PKG)/Version.py $(PKG)/Version.pyc ${CHANGES} ${NOTES} \
upload ReleaseNotes.txt announce_pypi upload_homepage
rm -rf dist build
release: upload upload_homepage announce_pypi announce
include $(RELEASETOOLS)/Makefile-pyrelease