git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add a simple makefile
@ 2006-05-03 15:34 Pavel Roskin
  0 siblings, 0 replies; only message in thread
From: Pavel Roskin @ 2006-05-03 15:34 UTC (permalink / raw)
  To: Catalin Marinas, git

From: Pavel Roskin <proski@gnu.org>


---

 Makefile |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..df77d97
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PREFIX = $(HOME)
+DESTDIR = /
+PYTHON = python
+
+all:
+	$(PYTHON) setup.py build
+
+install:
+	$(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR)
+
+doc:
+	cd doc && $(MAKE) all
+
+test:
+	cd t && $(MAKE) all
+
+clean:
+	for dir in doc t; do \
+		(cd $$dir && $(MAKE) clean); \
+	done
+	rm -rf build
+	rm -f stgit/*.pyc
+	rm -f stgit/commands/*.pyc

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-03 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-03 15:34 [PATCH] Add a simple makefile Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).