~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unneeded import
[stgit]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
df77d97
..
9322fe0
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,23
+1,42
@@
-PREFIX = $(HOME)
-DESTDIR = /
-PYTHON = python
+prefix ?= $(HOME)
+DESTDIR ?= /
+PYTHON ?= python
+
+TEST_PATCHES ?= ..
all:
$(PYTHON) setup.py build
install:
all:
$(PYTHON) setup.py build
install:
- $(PYTHON) setup.py install --prefix=$(
PREFIX) --root=$(DESTDIR)
+ $(PYTHON) setup.py install --prefix=$(
prefix) --root=$(DESTDIR) --force
doc:
doc:
- cd doc && $(MAKE) all
+ cd Documentation && $(MAKE) all
+
+install-doc:
+ $(MAKE) -C Documentation install
+
+install-html:
+ $(MAKE) -C Documentation install-html
test:
cd t && $(MAKE) all
test:
cd t && $(MAKE) all
+test_patches:
+ for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
+ stg goto $$patch && $(MAKE) test || break; \
+ done
+
clean:
clean:
- for dir in
doc
t; do \
+ for dir in
Documentation
t; do \
(cd $$dir && $(MAKE) clean); \
done
rm -rf build
rm -f stgit/*.pyc
rm -f stgit/commands/*.pyc
(cd $$dir && $(MAKE) clean); \
done
rm -rf build
rm -f stgit/*.pyc
rm -f stgit/commands/*.pyc
+ rm -f TAGS
+
+tags:
+ ctags -e -R stgit/*
+
+.PHONY: all install doc install-doc install-html test test_patches clean