debian/rules should be producing architecture independent packages
[stgit/dwhite.git] / Makefile
blob9322fe0954abb664cf57a5d494bd98c0b9c89990
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 cd t && $(MAKE) all
25 test_patches:
26 for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
27 stg goto $$patch && $(MAKE) test || break; \
28 done
30 clean:
31 for dir in Documentation t; do \
32 (cd $$dir && $(MAKE) clean); \
33 done
34 rm -rf build
35 rm -f stgit/*.pyc
36 rm -f stgit/commands/*.pyc
37 rm -f TAGS
39 tags:
40 ctags -e -R stgit/*
42 .PHONY: all install doc install-doc install-html test test_patches clean