~ubuntu-branches/ubuntu/lucid/jhbuild/lucid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort, Loic Minier, Emilio Pozuelo Monfort
  • Date: 2009-11-09 20:28:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091109202848-m9ec7dmzptqtchtj
Tags: 2.28.0-1
[ Loic Minier ]
* Cleanups.
* Ship scripts.
* Don't set GNOME_MODULE as it equals the name of the source package.

[ Emilio Pozuelo Monfort ]
* New upstream release. Closes: #524504.
  - Use 'git rev-parse' rather than 'git-rev-parse'. Closes: #544642.
* Ship install-check. Closes: #441008.
* Uploaders list regenerated. Closes: #523542, #554071.
* debian/control.in,
  debian/rules:
  - Stop shipping a copy of subprocess.py. Require python >= 2.4.
  - Switch to python-support.
* debian/control.in:
  - Bump Standards-Version to 3.8.3, no changes needed.
  - Build depend on intltool >= 0.35.0.
  - Build depend on pkg-config, gnome-doc-utils and rarian-compat to build
    the documentation.
  - Make jhbuild arch any since install-check is a binary. Depend on
    ${shlibs:Depends}.
  - Recommend, and not suggest, git-core. Also recommend mercurial.
* debian/watch:
  - Added.
* debian/patches/01_import_from_pkgdatadir.patch:
  - Added, import jhbuild from pkgdatadir if everything else fails.
    This way we can ship the jhbuild private modules in /usr/sharejhbuild.
* debian/jhbuild.docs:
  - Removed, the necessary docs are now installed by the upstream Makefile.
* debian/rules:
  - Include autotools.mk and gnome.mk.
  - Remove all the manual build process, autotools.mk does everything now.
  - Install the jhbuild modules in /usr/share/jhbuild.
* debian/install:
  - Install the modulesets and patches from here since the upstream build
    system doesn't install them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PACKAGE = jhbuild
2
 
VERSION = 0.1
3
 
 
4
 
CC = gcc
5
 
CFLAGS = -Wall -O2
6
 
 
7
 
bindir=$(HOME)/bin
8
 
desktopdir=$(HOME)/.local/share/applications
9
 
 
10
 
all: install-check
11
 
        @echo 'Run "make install" to install.'
12
 
 
13
 
install-check: install-check.c
14
 
        $(CC) $(CFLAGS) -o install-check install-check.c
15
 
 
16
 
update:
17
 
        svn update --quiet
18
 
 
19
 
install: install-check
20
 
        @echo "Creating $(bindir)/jhbuild"
21
 
        @mkdir -p $(bindir)
22
 
        @sed "s,@jhbuilddir@,`pwd`,g" < jhbuild.in > $(bindir)/jhbuild
23
 
        @chmod a+x $(bindir)/jhbuild
24
 
 
25
 
        @echo "Creating $(desktopdir)/jhbuild.desktop"
26
 
        @mkdir -p $(desktopdir)
27
 
        @cp jhbuild.desktop $(desktopdir)
28
 
        @echo "Exec=$(bindir)/jhbuild gui" >> $(desktopdir)/jhbuild.desktop
29
 
 
30
 
        @[ -f $(HOME)/.jhbuildrc ]||echo "Don't forget to create ~/.jhbuildrc"
31
 
        install -m755 install-check $(bindir)/install-check
32
 
 
33
 
distdir = $(PACKAGE)-$(VERSION)
34
 
dist:
35
 
        -rm -rf $(distdir)
36
 
        mkdir $(distdir)
37
 
        cp -p README COPYING ChangeLog Makefile jhbuild.in jhbuild.desktop $(distdir)/
38
 
        cp -p *.c *.jhbuildrc $(distdir)/
39
 
        mkdir $(distdir)/modulesets
40
 
        cp -p modulesets/*.modules $(distdir)/modulesets/
41
 
        cp -p modulesets/moduleset.dtd modulesets/moduleset.xsl $(distdir)/modulesets/
42
 
        mkdir $(distdir)/patches
43
 
        cp -p patches/*.patch $(distdir)/patches/
44
 
        mkdir $(distdir)/jhbuild
45
 
        cp -p jhbuild/*.py jhbuild/defaults.jhbuildrc $(distdir)/jhbuild/
46
 
        mkdir $(distdir)/jhbuild/commands
47
 
        cp -p jhbuild/commands/*.py $(distdir)/jhbuild/commands/
48
 
        mkdir $(distdir)/jhbuild/frontends
49
 
        cp -p jhbuild/frontends/*.py $(distdir)/jhbuild/frontends/
50
 
        cp -p jhbuild/frontends/jhbuild.glade $(distdir)/jhbuild/frontends/
51
 
        mkdir $(distdir)/jhbuild/modtypes
52
 
        cp -p jhbuild/modtypes/*.py $(distdir)/jhbuild/modtypes/
53
 
        mkdir $(distdir)/jhbuild/utils
54
 
        cp -p jhbuild/utils/*.py $(distdir)/jhbuild/utils/
55
 
        mkdir $(distdir)/scripts
56
 
        cp -p scripts/*.py scripts/*.xsl scripts/*.deps scripts/*.exceptions $(distdir)/scripts/
57
 
        mkdir $(distdir)/scripts/branch-violations
58
 
        cp -p scripts/branch-violations/README scripts/branch-violations/find-branch-* \
59
 
                $(distdir)/scripts/branch-violations/
60
 
        chmod -R a+r $(distdir)
61
 
        tar czf $(distdir).tar.gz $(distdir)
62
 
        rm -rf $(distdir)
63
 
 
64
 
.PHONY: all update install