aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-26 15:05:45 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-26 15:05:45 +0000
commit3422e6d25ae6de598c40973c6ed5258641bb53b6 (patch)
treecd0a6bfbd7f4aeec54b69b1520258e5eb97858a0 /Makefile
parent3ba863b63b7d3a7755a3a82ba0555201e926a7ae (diff)
downloadsos-3422e6d25ae6de598c40973c6ed5258641bb53b6.tar.gz
build updates
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@870 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 1 insertions, 44 deletions
diff --git a/Makefile b/Makefile
index 0051eb30..f50e1681 100644
--- a/Makefile
+++ b/Makefile
@@ -15,16 +15,14 @@ TOPDIR = $(HOME)/rpmbuild/SOURCES
TMPDIR = /tmp/$(NAME)-$(VERSION)
MANPAGE = $(PWD)/sosreport.1
SOURCE1 = $(PWD)/sos.conf
-SOURCE2 = $(PWD)/sosreport.1.gz
SOURCE3 = $(PWD)/gpgkeys/rhsupport.pub
all:
.PHONY: tarball install clean rpm
-tarball: clean mo gpgkey
+tarball: clean gpgkey
@echo "Build Archive"
- @test -f $(SOURCE2) || gzip -c $(MANPAGE) > $(SOURCE2)
@mkdir $(TMPDIR)
@python setup.py sdist -d $(TMPDIR)
@mkdir $(PWD)/dist
@@ -32,62 +30,21 @@ tarball: clean mo gpgkey
@echo " "
@echo "The final archive is $(PWD)/dist/"
-install:gpgkey mo
- python setup.py install
- @rm -rf build/lib
-
clean:
@rm -fv *~ .*~ changenew ChangeLog.old $(NAME)-$(VERSION).tar.gz
@rm -rfv {dist,build,sos.egg-info}
@rm -rf MANIFEST
@rm -rfv $(TMPDIR)
- @rm -rf {$(SOURCE2),$(SOURCE3)}
- @for i in `ls po`; do \
- if [ -d po/$$i ]; then \
- rm -rf po/$$i; \
- fi; \
- done;
@for i in `find . -iname *.pyc`; do \
rm $$i; \
done; \
-# TODO: This needs work
-internal-rpm: gpgkey
- @test -f sos-internal.spec
- @mkdir -p $(TOPDIR)/SOURCES $(TOPDIR)/SRPMS $(TOPDIR)/RPMS $(TOPDIR)/BUILD $(SRCDIR)/dist
- cp gpgkeys/rhsupport.pub gpgkeys/rhsupport.key $(TOPDIR)/SOURCES
-
-# this builds an RPM from the current working copy
- @cd $(TOPDIR)/BUILD ; \
- rm -rf $(NAME)-$(VERSION) ; \
- ln -s $(SRCDIR) $(NAME)-$(VERSION) ; \
- tar --gzip --exclude=.svn --exclude=svn-commit.tmp --exclude=$(NAME)-$(VERSION)/build --exclude=$(NAME)-$(VERSION)/dist \
- --exclude gpgkeys/rhsupport.pub --exclude gpgkeys/rhsupport.key \
- -chSpf $(TOPDIR)/SOURCES/$(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION) ; \
- rm -f $(NAME)-$(VERSION)
-
- rpmbuild -ba --define="_topdir $(TOPDIR)" sos-internal.spec
- @mv $(TOPDIR)/RPMS/noarch/$(NAME)-internal-*.rpm $(TOPDIR)/SRPMS/$(NAME)-internal-*.rpm dist/
- cp gpgkeys/rhsupport.key dist/
-
rpm:
@test -d $(TOPDIR) || mkdir -p $(TOPDIR)
@mv dist/* $(TOPDIR)
@test -f sos.spec
rpmbuild -ba sos.spec
-pot:
- xgettext -o po/sos.pot sos/sosreport.py sos/policyredhat.py
-
-mo:
- @echo "Generating mo files"
- @for i in `ls po`; do \
- if [ $$i != 'sos.pot' ]; then \
- mkdir po/$${i%.po}; \
- python tools/msgfmt.py -o po/$${i%.po}/sos.mo po/$$i; \
- fi; \
- done; \
-
gpgkey:
@echo "Building gpg key"
@test -f gpgkeys/rhsupport.pub && echo "GPG key already exists." || \