~ubuntu-branches/ubuntu/quantal/libgweather/quantal

« back to all changes in this revision

Viewing changes to python/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-17 15:26:05 UTC
  • mfrom: (1.1.28 upstream) (5.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20110517152605-anf9c03d1ny7yn54
Tags: 3.0.0-0ubuntu1
* Resynchronize on Debian and update to the current version, remaining diff:
* debian/control.in:
  - Build-depend on dh-autoreconf, gnome-common
  - use Conflicts on the ppa binaries names differently for easier upgrades
* debian/rules:
  - Run autotools on build
  - Generate POT files on build
* debian/patches/01_gettext_not_xml.patch: 
  - using gettext rather than add translations to the xml databases
* debian/watch: 
  - Watch unstable series  

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
if BUILD_PYTHON
2
 
INCLUDES =                      \
3
 
        -I$(top_srcdir)         \
4
 
        $(PYTHON_INCLUDES)      \
5
 
        $(PYGOBJECT_CFLAGS)     \
6
 
        $(GTK_CFLAGS)
7
 
 
8
 
pyunstabledir = $(pyexecdir)/gweather/I_KNOW_THIS_IS_UNSTABLE
9
 
pyunstable_LTLIBRARIES = gweather.la
10
 
gweather_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgweather
11
 
gweather_la_LIBADD = ../libgweather/libgweather.la
12
 
gweather_la_SOURCES = gweathermodule.c
13
 
nodist_gweather_la_SOURCES = gweather.c
14
 
gweather.c: gweather.defs gweather.override
15
 
 
16
 
.defs.c:
17
 
        $(AM_V_GEN)(cd $(srcdir)\
18
 
         && pygobject-codegen-2.0 \
19
 
                --register $(PYGTK_DEFS) \
20
 
                --override $*.override \
21
 
                --prefix py$* $*.defs) > gen-$*.c \
22
 
        && cp gen-$*.c $*.c \
23
 
        && rm -f gen-$*.c
24
 
 
25
 
install-exec-hook:
26
 
        $(MKDIR_P) "$(DESTDIR)$(pyunstabledir)"
27
 
        $(INSTALL_DATA) $(srcdir)/bad__init__.py "$(DESTDIR)$(pyexecdir)/gweather/__init__.py"
28
 
        touch $(DESTDIR)$(pyunstabledir)/__init__.py
29
 
        chmod a+x $(DESTDIR)$(pyunstabledir)/__init__.py
30
 
 
31
 
endif
32
 
 
33
 
EXTRA_DIST = gweather.defs gweather.override bad__init__.py demo.py
34
 
 
35
 
CLEANFILES = gweather.c
36
 
 
37
 
-include $(top_srcdir)/git.mk