Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jmc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bfe797e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+PYTHON=`which python`
+DESTDIR=/
+BUILDIR=$(CURDIR)/debian/jcl
+PROJECT=jcl
+VERSION=0.1b2
+
+all:
+ @echo "make source - Create source package"
+ @echo "make install - Install on local system"
+ @echo "make buildrpm - Generate a rpm package"
+ @echo "make builddeb - Generate a deb package"
+ @echo "make clean - Get rid of scratch and byte files"
+
+source:
+ $(PYTHON) setup.py sdist $(COMPILE)
+
+install:
+ $(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
+
+buildrpm:
+ $(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
+
+builddeb:
+ $(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
+ rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
+ dpkg-buildpackage -i -I -rfakeroot
+
+clean:
+ $(PYTHON) setup.py clean
+ fakeroot $(MAKE) -f $(CURDIR)/debian/rules clean
+ rm -rf build/ MANIFEST
+ find . -name '*.pyc' -delete