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

« back to all changes in this revision

Viewing changes to libgweather/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
 
lib_LTLIBRARIES = libgweather.la
2
 
 
3
 
libgweatherincdir = $(includedir)/libgweather
 
1
lib_LTLIBRARIES = libgweather-3.la
 
2
noinst_PROGRAMS = test_metar test_locations test_sun_moon
 
3
 
 
4
AM_CPPFLAGS =                   \
 
5
        $(GTK_CFLAGS)           \
 
6
        -I$(top_srcdir)         \
 
7
        -I$(srcdir)
 
8
 
 
9
AM_CFLAGS = $(WARN_CFLAGS)
 
10
 
4
11
gweather_old_headers = \
5
12
        weather.h gweather-gconf.h gweather-prefs.h gweather-xml.h
6
13
gweather_new_headers = \
7
14
        gweather-location.h location-entry.h \
8
15
        gweather-timezone.h timezone-menu.h
 
16
libgweatherincdir = $(includedir)/libgweather-3.0/libgweather
9
17
libgweatherinc_HEADERS = \
10
18
        $(gweather_old_headers)         \
11
19
        $(gweather_new_headers)         \
12
20
        gweather-enum-types.h
13
21
 
14
 
pkgconfigdir = $(libdir)/pkgconfig
15
 
pkgconfig_DATA = gweather.pc
 
22
noinst_HEADERS = weather-priv.h gweather-win32.h
16
23
 
17
 
libgweather_la_SOURCES = \
 
24
libgweather_3_la_SOURCES = \
18
25
        weather.c weather.h weather-priv.h \
19
26
        weather-metar.c weather-iwin.c weather-met.c \
20
27
        weather-bom.c weather-wx.c \
31
38
        parser.c parser.h
32
39
 
33
40
if OS_WIN32
34
 
libgweather_la_SOURCES += gweather-win32.c
 
41
libgweather_3_la_SOURCES += gweather-win32.c
35
42
else
36
 
EXTRA_libgweather_la_SOURCES = gweather-win32.c
 
43
EXTRA_libgweather_3_la_SOURCES = gweather-win32.c
37
44
endif
38
45
 
39
 
libgweather_la_CFLAGS = \
40
 
        -I$(top_srcdir)                 \
41
 
        -I$(srcdir)                     \
42
 
        $(WARN_CFLAGS)                  \
43
 
        $(GTK_CFLAGS)                   \
 
46
libgweather_3_la_CPPFLAGS = \
 
47
        $(AM_CPPFLAGS)                  \
44
48
        $(LIBXML_CFLAGS)                \
45
49
        $(LIBSOUP_CFLAGS)               \
46
50
        $(GCONF_CFLAGS)                 \
48
52
        -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
49
53
        -DGWEATHER_XML_LOCATION_DIR=\""$(pkgdatadir)"\"
50
54
 
51
 
libgweather_la_LIBADD = \
 
55
libgweather_3_la_LIBADD = \
52
56
        -lm             \
53
57
        $(GTK_LIBS)     \
54
58
        $(LIBXML_LIBS)  \
56
60
        $(GCONF_LIBS) \
57
61
        $(REGEX_LIBS)
58
62
 
59
 
libgweather_la_LDFLAGS = \
 
63
libgweather_3_la_LDFLAGS = \
60
64
        -version-info $(LT_VERSION) -no-undefined
61
65
 
62
 
MKENUMS_GENERATED = gweather-enum-types.c gweather-enum-types.h
 
66
test_metar_SOURCES = test_metar.c
 
67
test_metar_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSOUP_CFLAGS)
 
68
test_metar_LDADD = libgweather-3.la $(GTK_LIBS)
 
69
 
 
70
test_locations_SOURCES = test_locations.c
 
71
test_locations_LDADD = libgweather-3.la $(GTK_LIBS)
 
72
 
 
73
test_sun_moon_SOURCES = test_sun_moon.c
 
74
test_sun_moon_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSOUP_CFLAGS)
 
75
test_sun_moon_LDADD = libgweather-3.la $(GTK_LIBS)
63
76
 
64
77
gweather-enum-types.h: $(gweather_new_headers)
65
78
        $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template gweather-enum-types.h.tmpl \
73
86
        && mv gweather-enum-types.c.tmp gweather-enum-types.c \
74
87
        || rm -f gweather-enum-type.c.tmp
75
88
 
76
 
BUILT_SOURCES = $(MKENUMS_GENERATED)
77
 
 
78
 
test_metar_SOURCES = test_metar.c
79
 
 
80
 
test_metar_CFLAGS = \
81
 
        -I$(top_srcdir)                 \
82
 
        -I$(srcdir)                     \
83
 
        $(WARN_CFLAGS)                  \
84
 
        $(GTK_CFLAGS)                   \
85
 
        $(LIBSOUP_CFLAGS)               \
86
 
        -DG_LOG_DOMAIN=\"GWeather\"
87
 
 
88
 
test_metar_LDADD = \
89
 
        $(GTK_LIBS) \
90
 
        $(LIBSOUP_LIBS) \
91
 
        $(REGEX_LIBS) \
92
 
        libgweather.la
93
 
 
94
 
test_locations_SOURCES = test_locations.c
95
 
 
96
 
test_locations_CFLAGS = \
97
 
        -I$(top_srcdir)                 \
98
 
        -I$(srcdir)                     \
99
 
        $(WARN_CFLAGS)                  \
100
 
        $(GTK_CFLAGS)                   \
101
 
        $(GNOME_VFS_APPLETS_CFLAGS)     \
102
 
        -DG_LOG_DOMAIN=\"GWeather\"
103
 
 
104
 
test_locations_LDADD = libgweather.la $(GTK_LIBS)
105
 
 
106
 
test_sun_moon_SOURCES = \
107
 
        test_sun_moon.c
108
 
 
109
 
test_sun_moon_CFLAGS = \
110
 
        -I$(top_srcdir)                 \
111
 
        -I$(srcdir)                     \
112
 
        $(WARN_CFLAGS)                  \
113
 
        $(GTK_CFLAGS)                   \
114
 
        $(LIBSOUP_CFLAGS)               \
115
 
        -DG_LOG_DOMAIN=\"GWeather\"
116
 
 
117
 
test_sun_moon_LDADD = \
118
 
        $(LIBSOUP_LIBS) \
119
 
        $(GTK_LIBS)     \
120
 
        libgweather.la
121
 
 
122
 
noinst_HEADERS = weather-priv.h gweather-win32.h
123
 
noinst_PROGRAMS = test_metar test_locations test_sun_moon
124
 
 
125
 
schemadir   = @GCONF_SCHEMA_FILE_DIR@
 
89
BUILT_SOURCES = gweather-enum-types.c gweather-enum-types.h
 
90
 
 
91
pkgconfigdir = $(libdir)/pkgconfig
 
92
pkgconfig_DATA = gweather-3.0.pc
 
93
 
 
94
schemadir = @GCONF_SCHEMA_FILE_DIR@
126
95
schema_in_files = gweather.schemas.in
127
96
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
128
97
 
129
98
@INTLTOOL_SCHEMAS_RULE@
130
99
 
 
100
EXTRA_DIST = gweather-3.0.pc.in gweather-3.0-uninstalled.pc.in $(schema_in_files)
 
101
 
 
102
CLEANFILES = $(schema_DATA) $(noinst_PROGRAMS) $(BUILT_SOURCES)
 
103
 
 
104
# Introspection
 
105
-include $(INTROSPECTION_MAKEFILE)
 
106
INTROSPECTION_GIRS =
 
107
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir)
 
108
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
 
109
 
 
110
if HAVE_INTROSPECTION
 
111
introspection_sources =         \
 
112
        weather.c weather.h \
 
113
        gweather-location.c gweather-location.h \
 
114
        gweather-timezone.c gweather-timezone.h \
 
115
        location-entry.c location-entry.h \
 
116
        timezone-menu.c timezone-menu.h \
 
117
        gweather-enum-types.h
 
118
 
 
119
GWeather-3.0.gir: libgweather-3.la Makefile
 
120
GWeather_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
 
121
GWeather_3_0_gir_CFLAGS = $(libgweather_3_la_CPPFLAGS) -DGWEATHER_I_KNOW_THIS_IS_UNSTABLE
 
122
GWeather_3_0_gir_LIBS = libgweather-3.la
 
123
GWeather_3_0_gir_SCANNERFLAGS = --identifier-prefix=GWeather --symbol-prefix=gweather --pkg-export=gweather-3.0
 
124
GWeather_3_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
 
125
INTROSPECTION_GIRS += GWeather-3.0.gir
 
126
 
 
127
girdir = $(INTROSPECTION_GIRDIR)
 
128
gir_DATA = $(INTROSPECTION_GIRS)
 
129
 
 
130
typelibdir = $(INTROSPECTION_TYPELIBDIR)
 
131
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
 
132
 
 
133
CLEANFILES += $(gir_DATA) $(typelib_DATA)
 
134
endif
 
135
 
131
136
if GCONF_SCHEMAS_INSTALL
132
137
install-data-local:
133
138
        if test -z "$(DESTDIR)" ; then \
134
139
                for p in $(schema_DATA) ; do \
135
 
                        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
 
140
                        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/libgweather/$$p ; \
136
141
                done \
137
142
        fi
138
143
uninstall-local:
139
144
        for p in $(schema_DATA) ; do \
140
 
                GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $$p ; \
 
145
                GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(top_builddir)/libgweather/$$p ; \
141
146
        done
142
147
endif
143
148
 
144
 
EXTRA_DIST = gweather.pc.in gweather-uninstalled.pc.in $(schema_in_files)
145
 
 
146
 
EXTRA_PROGRAMS = test_metar test_sun_moon
147
 
 
148
 
CLEANFILES = $(schema_DATA) $(EXTRA_PROGRAMS) $(MKENUMS_GENERATED)
149
 
 
150
149
-include $(top_srcdir)/git.mk