summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
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