summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-25 02:45:40 +0100
committerhut <hut@lavabit.com>2010-02-25 02:45:47 +0100
commite9e4b4ffa4b4865c46acbebfc7ef2083bfac0210 (patch)
tree881e838f20c2025321409b23157b8e4af1f4eea2 /Makefile
parenta5d9423cad0a112564447b2519208b9ec5354665 (diff)
downloadranger-e9e4b4ffa4b4865c46acbebfc7ef2083bfac0210.tar.gz
added Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..c2393415
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,39 @@
+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 .\*.pyc$ | 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
fb45849b13e5affd0e5999c5cd09'>^
d1c12218 ^
d4b4d018 ^
002cbf13 ^
4b62edd8 ^
be440cb6 ^
002cbf13 ^
cb9e66d7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18