forked from ros-infrastructure/bloom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·42 lines (32 loc) · 790 Bytes
/
Makefile
File metadata and controls
executable file
·42 lines (32 loc) · 790 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
37
38
39
40
41
42
.PHONY: all clean_dist clean doc
VERSION=`./setup.py --version`
USERNAME ?= $(shell whoami)
UNAME := $(shell uname)
doc:
python setup.py build_sphinx
ifeq ($(UNAME),Darwin)
@open doc/build/html/index.html
else
@echo "Not opening index.html on $(UNAME)"
endif
all:
echo "noop for debbuild"
clean_dist:
-rm -f MANIFEST
-rm -rf dist
-rm -rf deb_dist
clean: clean_dist
echo "clean"
NEW_VERSION := $(shell python docs/bump_version.py setup.py --version_only)
pre-release:
# Bump the version
python docs/bump_version.py setup.py > setup.py_tmp
mv setup.py_tmp setup.py
# Set the permissions
chmod 775 setup.py
# Commit bump
git commit -m "$(NEW_VERSION)" setup.py
# Tag it
git tag -f $(NEW_VERSION)
release: pre-release
@echo "Now push the result with git push --all"