diff options
author | Michael Stone <michael@laptop.org> | 2010-06-27 18:22:33 (GMT) |
---|---|---|
committer | Michael Stone <michael@laptop.org> | 2010-06-27 19:32:37 (GMT) |
commit | fa1557991d1fe96c72ee471dce3070626c97c134 (patch) | |
tree | 54541ef1726f511c3372df9d85401c9315e0ab97 | |
parent | 837f46f19c50231a20f1cad51d797a81a4be749b (diff) |
Update development helpers.
More specifically, introduce:
* a 'deps' target which will try to guess the right dependencies to install
based on hints from lsb_release, /etc/fedora-release, etc.
* a 'run' target which will install the source into a local directory named
'./tree' and which will run sugar-emulator from there.
-rw-r--r-- | Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -269,20 +269,19 @@ clean: distclean: clean rm -f config.mk main/src/jarabe/config.py presence-service/src/config.py -# Development Helpers +# Development helpers -DEBIAN_MAIN_BUILDDEPS = devscripts python-dev python-central debhelper dh-buildinfo libglib2.0-dev python-gtk2-dev libgconf2-dev gettext intltool shared-mime-info python-empy -DEBIAN_ARTWORK_BUILDDEPS = quilt patchutils libgtk2.0-dev libcairo2-dev icon-slicer icon-naming-utils x11-apps chrpath -DEBIAN_BASE_BUILDDEPS = python-all-dev python-gobject-dev -DEBIAN_PS_BUILDDEPS = python-dbus python-gobject openssh-client -DEBIAN_TOOLKIT_BUILDDEPS = libsm-dev libice-dev libasound2-dev libxml-parser-perl +DEBIAN_DEPS = devscripts python-dev python-central debhelper dh-buildinfo libglib2.0-dev python-gtk2-dev libgconf2-dev gettext intltool shared-mime-info python-empy quilt patchutils libgtk2.0-dev libcairo2-dev icon-slicer icon-naming-utils x11-apps chrpath python-all-dev python-gobject-dev python-dbus python-gobject openssh-client libsm-dev libice-dev libasound2-dev libxml-parser-perl vnc4server xvnc4viewer -debian-builddeps: - aptitude install $(DEBIAN_MAIN_BUILDDEPS) $(DEBIAN_ARTWORK_BUILDDEPS) $(DEBIAN_BASE_BUILDDEPS) $(DEBIAN_PS_BUILDDEPS) $(DEBIAN_TOOLKIT_BUILDDEPS) +FEDORA_DEPS = pkgconfig perl-XML-Parser gettext python pygtk2-devel gtk2-devel GConf2-devel intltool libSM-devel alsa-lib-devel icon-slicer icon-naming-utils xorg-x11-apps pygtk2-codegen python-decorator tigervnc tigervnc-server vte -XO_MAIN_BUILDDEPS = pkgconfig perl-XML-Parser gettext python pygtk2-devel gtk2-devel GConf2-devel intltool libSM-devel alsa-lib-devel icon-slicer icon-naming-utils xorg-x11-apps pygtk2-codegen python-decorator -xo-builddeps: - yum install $(XO_MAIN_BUILDDEPS) +deps: + -(lsb_release -i | grep 'Debian\|Ubuntu') && aptitude install $(DEBIAN_DEPS) + -(grep 'Fedora' /etc/fedora-release) && yum install $(FEDORA_DEPS) + +run: + $(MAKE) DESTDIR=./tree install + ./tree/usr/bin/sugar-env sugar-emulator # .PHONY: .DEFAULT_GOAL := all |