summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..95a8dc7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+#
+
+# Change this to point to your Python2 exectuable
+PYTHON = python
+
+# This should be the Python that generated RPMs depend on and install
+# into; this may be different from the Python used to build the RPM.
+RPM_TARGET_PYTHON=/usr/bin/python
+
+
+all: rpm
+
+ins:
+ soup $(PYTHON) setup.py install
+
+kit: doc rpm # make a kit
+
+rpm: ZSI/version.py
+ rm -f dist/*
+ $(PYTHON) setup.py bdist_rpm --python=$(RPM_TARGET_PYTHON)
+
+doc: doc/version.tex # build the docs
+ $(MAKE) -C doc
+
+ver: # update the build number
+ $(PYTHON) newver.py --incr
+
+.PHONY: all ins kit rpm doc ver
+
+ZSI/version.py doc/version.tex: setup.cfg
+ $(PYTHON) newver.py