summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMihai Ibanescu <misa@redhat.com>2006-05-04 14:58:31 -0400
committerJim Meyering <jim@meyering.net>2006-05-04 14:58:31 -0400
commit018d57abccb1ad0310792a3018cad652c2bc70c6 (patch)
tree08c3adc2d47d0bfa8c13676c72cf094564036e08 /Makefile
parent33518a0654a6937ee2394205749710cdee4a0b60 (diff)
downloadthird_party-cobbler-018d57abccb1ad0310792a3018cad652c2bc70c6.zip
third_party-cobbler-018d57abccb1ad0310792a3018cad652c2bc70c6.tar.gz
third_party-cobbler-018d57abccb1ad0310792a3018cad652c2bc70c6.tar.xz
Merged Michael's changes with mine
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index d8174f8..8e917c0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,21 @@
-all: clean test manpage install
-
clean:
- @rm -f *.gz *.rpm MANIFEST
- @rm -rf cobbler-* dist build
+ \rm -f cobbler*.gz cobbler*.rpm MANIFEST
+ \rm -rf cobbler-* dist build
manpage:
- pod2man --center="cobbler" --release="" cobbler.pod > cobbler.1
- @\rm -f cobbler.1.gz
- gzip cobbler.1
+ pod2man --center="cobbler" --release="" cobbler.pod | gzip -c > cobbler.1.gz
test:
python tests/tests.py
-install: clean
+install: clean manpage
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
-
+ 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