~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a --hard flag to stg reset
[stgit]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
9322fe0
..
288622a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-4,10
+4,17
@@
PYTHON ?= python
TEST_PATCHES ?= ..
TEST_PATCHES ?= ..
-all:
+all:
build
$(PYTHON) setup.py build
$(PYTHON) setup.py build
-install:
+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
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
doc:
$(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
doc:
@@
-19,10
+26,10
@@
install-doc:
install-html:
$(MAKE) -C Documentation install-html
install-html:
$(MAKE) -C Documentation install-html
-test:
+test:
build
cd t && $(MAKE) all
cd t && $(MAKE) all
-test_patches:
+test_patches:
build
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
@@
-35,8
+42,9
@@
clean:
rm -f stgit/*.pyc
rm -f stgit/commands/*.pyc
rm -f TAGS
rm -f stgit/*.pyc
rm -f stgit/commands/*.pyc
rm -f TAGS
+ rm -f stgit/commands/cmdlist.py
tags:
ctags -e -R stgit/*
tags:
ctags -e -R stgit/*
-.PHONY: all install doc install-doc install-html test test_patches clean
+.PHONY: all
build
install doc install-doc install-html test test_patches clean