-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (37 loc) · 859 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
prefix ?= $(HOME)
DESTDIR ?= /
PYTHON ?= python2
export DESTDIR PYTHON
TEST_PATCHES ?= ..
all:
$(PYTHON) setup.py build
install:
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
doc:
cd Documentation && $(MAKE) all
install-doc:
$(MAKE) -C Documentation install
install-html:
$(MAKE) -C Documentation install-html
test:
$(PYTHON) setup.py build
cd t && $(MAKE) all
test_patches:
for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
stg goto $$patch && $(MAKE) test || break; \
done
clean:
for dir in Documentation t; do \
(cd $$dir && $(MAKE) clean); \
done
rm -rf build
rm -f stgit/*.pyc
rm -f stgit/commands/*.pyc
rm -f TAGS
rm -f stgit/commands/cmdlist.py
tags:
ctags -R stgit/*
TAGS:
ctags -e -R stgit/*
.PHONY: all install doc install-doc install-html test test_patches \
clean tags TAGS