summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-13 17:10:29 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-13 17:10:29 -0400
commitd24ca2fb2a0063d16bd95916de9300255e22cbc7 (patch)
treebb430a7bca0df775f62fce4c6fd394c8cfa0f7da /Makefile
parentd4973c541a8089afd8634850ecc8818aa15d99d7 (diff)
downloadthird_party-cobbler-d24ca2fb2a0063d16bd95916de9300255e22cbc7.zip
third_party-cobbler-d24ca2fb2a0063d16bd95916de9300255e22cbc7.tar.gz
third_party-cobbler-d24ca2fb2a0063d16bd95916de9300255e22cbc7.tar.xz
New Makefile from alikins
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cecc632..6fa532a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
-all: rpm
+all: rpms
clean:
-rm -f pod2htm*.tmp
-rm -f cobbler*.gz cobbler*.rpm MANIFEST
-rm -rf cobbler-* dist build
+ -rm -rf *~
+ -rm -rf rpm-build/
manpage:
pod2man --center="cobbler" --release="" ./docs/cobbler.pod | gzip -c > ./docs/cobbler.1.gz
@@ -13,10 +15,19 @@ test:
python tests/tests.py
-rm -rf /tmp/_cobbler-*
-rpm: clean manpage
+build: clean
+ python setup.py build -f
+
+install: clean
+ python setup.py install -f
+
+sdist: clean
python setup.py sdist
- cp dist/*.gz .
- rpmbuild --define "_topdir %(pwd)" \
+
+rpms: manpage sdist
+ mkdir -p rpm-build
+ cp dist/*.gz rpm-build/
+ rpmbuild --define "_topdir %(pwd)/rpm-build" \
--define "_builddir %{_topdir}" \
--define "_rpmdir %{_topdir}" \
--define "_srcrpmdir %{_topdir}" \