File: Makefile.am

package info (click to toggle)
xfce4-weather-plugin 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,088 kB
  • sloc: ansic: 8,973; makefile: 501; sh: 11; xml: 6
file content (100 lines) | stat: -rw-r--r-- 2,673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
AM_CPPFLAGS =								\
	-I$(top_srcdir)							\
	-DTHEMESDIR=\"$(datadir)/xfce4/weather/icons\" 			\
	-DGEONAMES_USERNAME=\"@GEONAMES_USERNAME@\" 			\
	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"				\
	-DG_LOG_DOMAIN=\"weather\"

plugin_LTLIBRARIES = libweather.la

plugindir = $(libdir)/xfce4/panel/plugins

libweather_built_sources =						\
	weather-config-resources.c					\
	$(NULL)

libweather_la_SOURCES =							\
	$(libweather_built_sources)					\
	weather.c							\
	weather.h							\
	weather-config.c						\
	weather-config.h						\
	weather-config.ui						\
	weather-data.c							\
	weather-data.h							\
	weather-debug.c							\
	weather-debug.h							\
	weather-icon.c							\
	weather-icon.h							\
	weather-parsers.c						\
	weather-parsers.h						\
	weather-scrollbox.c						\
	weather-scrollbox.h						\
	weather-search.c						\
	weather-search.h						\
	weather-summary.c						\
	weather-summary.h						\
	weather-translate.c						\
	weather-translate.h

libweather_la_CFLAGS =						\
	$(LIBXFCE4PANEL_CFLAGS)						\
	$(LIBXFCE4UI_CFLAGS)						\
	$(LIBXFCE4UTIL_CFLAGS)						\
	$(XFCONF_CFLAGS)								\
	$(GTK_CFLAGS)							\
	$(SOUP_CFLAGS)							\
	$(JSON_CFLAGS)							\
	$(UPOWER_GLIB_CFLAGS)						\
	$(LIBXML_CFLAGS)	\
	-DGTK_DISABLE_SINGLE_INCLUDES	\
	-DGDK_DISABLE_DEPRECATED	\
	-DGTK_DISABLE_DEPRECATED	\
	-DGSEAL_ENABLE

libweather_la_LIBADD =						\
	$(LIBM)                                 \
	$(LIBXFCE4PANEL_LIBS)						\
	$(LIBXFCE4UTIL_LIBS)						\
	$(LIBXFCE4UI_LIBS)						\
	$(XFCONF_LIBS)							\
	$(GTK_LIBS)							\
	$(LIBXML_LIBS)							\
	$(SOUP_LIBS)							\
	$(JSON_LIBS)

libweather_la_LDFLAGS = \
	-avoid-version \
	-module \
	-no-undefined \
	-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
	$(PLATFORM_LDFLAGS) \
	$(UPOWER_GLIB_LIBS)

weather_config_glade_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir) $(srcdir)/weather-config.gresource.xml)

weather-config-resources.c: $(srcdir)/weather-config.gresource.xml $(weather_config_glade_files) Makefile
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<

BUILT_SOURCES = \
	$(libweather_built_sources)

desktopdir = $(datadir)/xfce4/panel/plugins
desktop_in_files = weather.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

$(desktop_DATA): $(desktop_in_files)
	$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@

EXTRA_DIST = \
	$(desktop_in_files) \
	meson.build \
	weather-config.gresource.xml \
	$(NULL)

DISTCLEANFILES = \
	$(desktop_DATA)	\
	$(libweather_built_sources) \
	$(NULL)

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: