summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMihai Ibanescu <misa@redhat.com>2006-05-04 11:09:23 -0400
committerJim Meyering <jim@meyering.net>2006-05-04 11:09:23 -0400
commit496e1f292cace512bcc1483ecdefa6abc455edc5 (patch)
treee3b3804b6738a8c80a708327f8823fd0689329f1 /Makefile
parent2ac428dfd65cce8b6c5cb7a74364eadbe884e43f (diff)
downloadthird_party-cobbler-496e1f292cace512bcc1483ecdefa6abc455edc5.zip
third_party-cobbler-496e1f292cace512bcc1483ecdefa6abc455edc5.tar.gz
third_party-cobbler-496e1f292cace512bcc1483ecdefa6abc455edc5.tar.xz
install will clean first; don't run in subshell, use -f for rm instead
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 0b24f04..d8174f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,18 @@
all: clean test manpage install
clean:
- -(rm *.gz)
- -(rm *.rpm)
- -(rm -r cobbler-*)
- -(rm -rf ./dist)
- -(rm -rf ./build)
- -(rm MANIFEST)
+ @rm -f *.gz *.rpm MANIFEST
+ @rm -rf cobbler-* dist build
manpage:
pod2man --center="cobbler" --release="" cobbler.pod > cobbler.1
- -(\rm cobbler.1.gz)
+ @\rm -f cobbler.1.gz
gzip cobbler.1
test:
python tests/tests.py
-install:
+install: clean
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