summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-03 12:44:07 -0400
committerJim Meyering <jim@meyering.net>2006-05-03 12:44:07 -0400
commit42bf51511732ac6a7845d6a63adb8a31f05a4a03 (patch)
tree54765f8d75b8cbd2666270e89f873d7a71a27d87 /Makefile
parent96b4556a97263691ad4de85cd8101526f351e401 (diff)
downloadthird_party-cobbler-42bf51511732ac6a7845d6a63adb8a31f05a4a03.zip
third_party-cobbler-42bf51511732ac6a7845d6a63adb8a31f05a4a03.tar.gz
third_party-cobbler-42bf51511732ac6a7845d6a63adb8a31f05a4a03.tar.xz
Interim commit during packaging
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ad90129..f70589d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,23 @@
-all: manpage
+all: clean test manpage install
+
+clean:
+ -(rm *.gz)
+ -(rm *.rpm)
+ -(rm -r cobbler-*)
+ -(rm -rf ./dist)
+ -(rm -rf ./build)
+ -(rm MANIFEST)
manpage:
pod2man --center="cobbler" --release="" cobbler.pod > cobbler.1
-(\rm cobbler.1.gz)
gzip cobbler.1
- cp -f cobbler.1.gz /usr/share/man/man1
+
+test:
+ python test/tests.py
install:
- echo "(install not implemented)"
+ python setup.py sdist
+ cp dist/*.gz .
+ rpmbuild --define "_topdir %(pwd)" --define "_builddir %{_topdir}" --define "_rpmdir %{_topdir}" --define "_srcrpmdir %{_topdir}" --define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' --define "_specdir %{_topdir}" --define "_sourcedir %{_topdir}" -ba cobbler.spec
+