summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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}" \