Fix --authdate date parsing (other formats)
[stgit/kha.git] / Makefile
blob53c569462bf6e283359fe5c22bc4bd5fca3efd80
1 prefix ?= $(HOME)
2 DESTDIR ?= /
3 PYTHON ?= python
5 TEST_PATCHES ?= ..
7 all:
8 $(PYTHON) setup.py build
10 install:
11 $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --force
13 doc:
14 cd Documentation && $(MAKE) all
16 install-doc:
17 $(MAKE) -C Documentation install
19 install-html:
20 $(MAKE) -C Documentation install-html
22 test:
23 $(PYTHON) setup.py build
24 cd t && $(MAKE) all
26 test_patches:
27 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
28 stg goto $$patch && $(MAKE) test || break; \
29 done
31 clean:
32 for dir in Documentation t; do \
33 (cd $$dir && $(MAKE) clean); \
34 done
35 rm -rf build
36 rm -f stgit/*.pyc
37 rm -f stgit/commands/*.pyc
38 rm -f TAGS
39 rm -f stgit/commands/cmdlist.py
41 tags:
42 ctags -R stgit/*
44 TAGS:
45 ctags -e -R stgit/*
47 .PHONY: all install doc install-doc install-html test test_patches \
48 clean tags TAGS