blob: 8d628c335e953f0bbd3b2df3cbf394c20d71134e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
NAME = ranger
PYTHON = python
DOCDIR = doc/pydoc
CWD = $(shell pwd)
.PHONY: all clean doc cleandoc edit push test commit install
all: clean test
doc: cleandoc
mkdir -p $(DOCDIR)
cd $(DOCDIR); \
$(PYTHON) -c 'import pydoc, sys; \
sys.path[0] = "$(CWD)"; \
pydoc.writedocs("$(CWD)")'
install:
@less -XF INSTALL
cleandoc:
test -d $(DOCDIR) && rm -f $(DOCDIR)/*.html
clean:
find . -regex .\*.py[co]$ | xargs rm
test:
./all_tests.py
edit:
@vi ranger.py $(shell find ranger test -regex .\*py$ )
push:
@for repo in $(shell git remote); do \
echo "Pushing to $$repo..."; \
git push $$repo master; \
git push $$repo -f hut; \
done
commit:
@git citool
snapshot:
git archive HEAD | gzip > $(NAME)-$(shell git rev-list HEAD | head -n 1 | cut -b 1-16).tar.gz
|