~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
undo: Add test that "stg undo --hard" leaves the stgit tree in a consistent state
[stgit]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
288622a
..
53c5694
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-4,17
+4,10
@@
PYTHON ?= python
TEST_PATCHES ?= ..
TEST_PATCHES ?= ..
-all:
build
+all:
$(PYTHON) setup.py build
$(PYTHON) setup.py build
-build: stgit/commands/cmdlist.py
-
-ALL_PY = $(shell find stgit -name '*.py')
-
-stgit/commands/cmdlist.py: $(ALL_PY)
- $(PYTHON) stg-build --py-cmd-list > $@
-
-install: build
+install:
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
doc:
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
doc:
@@
-26,10
+19,11
@@
install-doc:
install-html:
$(MAKE) -C Documentation install-html
install-html:
$(MAKE) -C Documentation install-html
-test: build
+test:
+ $(PYTHON) setup.py build
cd t && $(MAKE) all
cd t && $(MAKE) all
-test_patches:
build
+test_patches:
for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
stg goto $$patch && $(MAKE) test || break; \
done
for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
stg goto $$patch && $(MAKE) test || break; \
done
@@
-45,6
+39,10
@@
clean:
rm -f stgit/commands/cmdlist.py
tags:
rm -f stgit/commands/cmdlist.py
tags:
+ ctags -R stgit/*
+
+TAGS:
ctags -e -R stgit/*
ctags -e -R stgit/*
-.PHONY: all build install doc install-doc install-html test test_patches clean
+.PHONY: all install doc install-doc install-html test test_patches \
+ clean tags TAGS