bumped version to 2.0.3
[yumex.git] / Makefile
blob4230323416fce8e6f164a63c7ec0f951248e2e44
1 SUBDIRS = src po src/yumgui
2 PYFILES = $(wildcard *.py)
3 PKGNAME = yumex
4 VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
5 PYTHON=python
6 SRCDIR=src
7 MISCDIR=misc
8 PIXDIR=gfx
9 ALLDIRS=src po src/yumgui gfx misc tools
11 all: subdirs
13 subdirs:
14 for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done
16 clean:
17 @rm -fv *~ *.tar.gz *.list *.lang
18 for d in $(SUBDIRS); do make -C $$d clean ; done
20 install:
21 mkdir -p $(DESTDIR)/usr/share/yumex
22 mkdir -p $(DESTDIR)/usr/share/pixmaps/yumex
23 mkdir -p $(DESTDIR)/usr/share/applications
24 mkdir -p $(DESTDIR)/usr/bin
25 mkdir -p $(DESTDIR)/etc
26 mkdir -p $(DESTDIR)/etc/pam.d
27 mkdir -p $(DESTDIR)/etc/security/console.apps
28 install -m644 COPYING $(DESTDIR)/usr/share/yumex/.
29 install -m755 $(MISCDIR)/yumex $(DESTDIR)/usr/share/yumex/.
30 install -m644 $(PIXDIR)/*.png $(DESTDIR)/usr/share/pixmaps/yumex/.
31 install -m644 $(MISCDIR)/yumex.profiles.conf $(DESTDIR)/etc/.
32 install -m644 $(MISCDIR)/yumex.pam $(DESTDIR)/etc/pam.d/yumex
33 install -m600 $(MISCDIR)/yumex.conf.default $(DESTDIR)/etc/yumex.conf
34 install -m644 $(MISCDIR)/yumex.pam $(DESTDIR)/etc/pam.d/yumex
35 install -m644 $(MISCDIR)/yumex.console.app $(DESTDIR)/etc/security/console.apps/yumex
36 ln -s consolehelper $(DESTDIR)/usr/bin/yumex
37 chmod +x $(DESTDIR)/usr/share/yumex/yumex
38 install -m644 $(MISCDIR)/yumex.desktop $(DESTDIR)/usr/share/applications/.
39 for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
42 archive:
43 @rm -rf ${PKGNAME}-${VERSION}.tar.gz
44 @git-archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ HEAD | gzip -9v >${PKGNAME}-$(VERSION).tar.gz
45 @cp ${PKGNAME}-$(VERSION).tar.gz $(shell rpm -E '%_sourcedir')
46 @rm -rf ${PKGNAME}-${VERSION}.tar.gz
47 @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
49 rpm-centos5:
50 rpmbuild -ba -D "dist .centos5" yumex.spec
52 rpm-fc6:
53 rpmbuild -ba -D "dist .fc6" yumex.spec
55 rpm-fc7:
56 rpmbuild -ba -D "dist .fc7" yumex.spec
58 changelog:
59 @git log --pretty --numstat --summary | tools/git2cl > ChangeLog.git
60 @cat ChangeLog.git ChangeLog.svn > ChangeLog
61 @rm ChangeLog.git
63 upload: FORCE
64 @scp ~/rpmbuild/SOURCES/${PKGNAME}-${VERSION}.tar.gz yum-extender.org:public_html/dnl/yumex/source/.
67 release:
68 @git commit -a -m "bumped version to $(VERSION)"
69 @$(MAKE) changelog
70 @git commit -a -m "updated ChangeLog"
71 @git push
72 @git tag -f -m "Added ${PKGNAME}-${VERSION} release tag" ${PKGNAME}-${VERSION}
73 @git push --tags origin
74 @$(MAKE) archive
75 @$(MAKE) upload
77 FORCE: