~mardy/account-plugins/lp1432613-vivid

12 by Alberto Mardegan
Fix "make dist" missing most of our files :-)
1
SUBDIRS = \
76.1.6 by David King
Convert tools subdirectory to non-recursive build
2
	po
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
3
76.1.5 by David King
Distcheck with --enable-libaccount-plugn
4
DISTCHECK_CONFIGURE_FLAGS = \
84.1.4 by David King
Force tests to be enabled during distcheck
5
	--enable-libaccount-plugin \
6
	--enable-tests
76.1.5 by David King
Distcheck with --enable-libaccount-plugn
7
76.1.2 by David King
Add ability to disable binary plugins at configure time
8
if ENABLE_LIBACCOUNT_PLUGIN
9
# Binary account plugins.
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
10
plugin_LTLIBRARIES = \
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
11
	libgeneric-oauth.la \
12
	libgoogle.la
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
13
14
VALAFLAGS = \
15
	--vapidir $(top_srcdir)/src \
36.1.1 by Ken VanDine
let the default twitter key/secret be overridden with configure arguments:
16
	--pkg config \
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
17
	--pkg AccountPlugin \
109.1.1 by Ken VanDine
Updated for libaccounts-glib >= 1.10
18
	--pkg libaccounts-glib \
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
19
	--pkg posix \
20
	--pkg signon \
21
	--pkg gtk+-3.0 \
22
	--pkg gmodule-2.0
23
24
plugin_cppflags = \
25
	$(ACCOUNT_PLUGINS_CFLAGS) \
26
	-include $(top_builddir)/config.h \
27
	$(WARN_CFLAGS)
28
29
plugin_libadd = \
30
	$(ACCOUNT_PLUGINS_LIBS)
31
32
plugin_ldflags = \
33
	-export_dynamic \
34
	-avoid-version \
35
	-module \
36
	-no-undefined \
37
	-export-symbols-regex '^ap_module_get_object_type'
38
39
libgoogle_la_CPPFLAGS = $(plugin_cppflags)
40
libgoogle_la_LIBADD = $(plugin_libadd)
41
libgoogle_la_LDFLAGS = $(plugin_ldflags)
42
libgoogle_la_SOURCES = \
43
	src/google.vala
44
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
45
libgeneric_oauth_la_CPPFLAGS = $(plugin_cppflags)
46
libgeneric_oauth_la_LIBADD = $(plugin_libadd)
47
libgeneric_oauth_la_LDFLAGS = $(plugin_ldflags)
48
libgeneric_oauth_la_SOURCES = \
49
	src/generic-oauth.vala
76.1.2 by David King
Add ability to disable binary plugins at configure time
50
endif # ENABLE_LIBACCOUNT_PLUGIN
51.1.2 by Xavier Claessens
Add Windows Live Messenger service
51
113.2.1 by Alberto Mardegan
Add flickr and twitter plugins
52
if ENABLE_QML_PLUGINS
53
SUBDIRS += qml
54
endif # ENABLE_QML_PLUGINS
55
76.1.8 by David King
Make providers subdirectory build non-recursively
56
# Extract transatable strings from .provider files
57
%.provider: %.provider.in $(INTLTOOL_MERGE)
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
58
	$(AM_V_at)$(MKDIR_P) $(builddir)/data/providers
76.1.8 by David King
Make providers subdirectory build non-recursively
59
	$(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@
60
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
61
providers_in_in_files = \
62
	data/providers/facebook.provider.in.in \
63
	data/providers/flickr.provider.in.in \
64
	data/providers/foursquare.provider.in.in \
65
	data/providers/google.provider.in.in \
66
	data/providers/identica.provider.in.in \
95.1.16 by Jonathan Davies
Added missing \ to Makefile.am.
67
	data/providers/linkedin.provider.in.in \
98.1.1 by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449).
68
	data/providers/instagram.provider.in.in \
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
69
	data/providers/sina.provider.in.in \
70
	data/providers/sohu.provider.in.in \
71
	data/providers/twitter.provider.in.in \
95.1.13 by Jonathan Davies
Place files in alphabetical order.
72
	data/providers/windows-live.provider.in.in
76.1.8 by David King
Make providers subdirectory build non-recursively
73
74
providers_DATA = \
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
75
	$(providers_in_in_files:.provider.in.in=.provider)
73.1.3 by David King
Generate GNU-style ChangeLog during make dist
76
76.1.9 by David King
Convert services subdirectory to non-recursive build
77
# Extract translatable strings from .service files
78
%.service: %.service.in $(INTLTOOL_MERGE)
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
79
	$(AM_V_at)$(MKDIR_P) $(builddir)/data/services
76.1.9 by David King
Convert services subdirectory to non-recursive build
80
	$(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@
81
82
services_in_files = \
83
	data/services/facebook-microblog.service.in \
84
	data/services/facebook-sharing.service.in \
85
	data/services/flickr-microblog.service.in \
86
	data/services/flickr-sharing.service.in \
87
	data/services/foursquare-microblog.service.in \
126.1.1 by Ken VanDine
Rename the google-docs service to google-drive to match branding. The gdrive
88
	data/services/google-drive.service.in \
76.1.9 by David King
Convert services subdirectory to non-recursive build
89
	data/services/google-im.service.in \
90
	data/services/identica-microblog.service.in \
95.1.2 by Jonathan Davies
Changes need for linkedin pieces.
91
	data/services/linkedin-microblog.service.in \
98.1.1 by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449).
92
	data/services/instagram-microblog.service.in \
76.1.9 by David King
Convert services subdirectory to non-recursive build
93
	data/services/picasa.service.in \
94
	data/services/sina-microblog.service.in \
95
	data/services/sohu-microblog.service.in \
147.1.1 by Alberto Mardegan
Remove non-working services
96
	data/services/twitter-microblog.service.in
76.1.9 by David King
Convert services subdirectory to non-recursive build
97
98
services_DATA = \
99
	$(services_in_files:.service.in=.service)
100
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
101
webkitoptionsdir = $(sysconfdir)/signon-ui/webkit-options.d
102
dist_webkitoptions_DATA = \
103
	data/webkit-options/accounts.google.com.conf \
98.1.1 by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449).
104
	data/webkit-options/api.instagram.com.conf \
97.1.1 by Zhang Zhao
Fix sina authentication
105
	data/webkit-options/api.weibo.com.conf \
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
106
	data/webkit-options/api.t.sohu.com.conf \
107
	data/webkit-options/api.twitter.com.conf \
108
	data/webkit-options/foursquare.com.conf \
109
	data/webkit-options/identi.ca.conf \
110
	data/webkit-options/login.live.com.conf \
111
	data/webkit-options/login.yahoo.com.conf \
95.1.2 by Jonathan Davies
Changes need for linkedin pieces.
112
	data/webkit-options/www.facebook.com.conf \
113
	data/webkit-options/www.linkedin.com.conf
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
114
76.1.6 by David King
Convert tools subdirectory to non-recursive build
115
dist_bin_SCRIPTS = \
116
	tools/account-console
117
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
118
dist_noinst_DATA = \
76.1.9 by David King
Convert services subdirectory to non-recursive build
119
	$(services_in_files) \
76.1.3 by David King
Remove old VAPI files
120
	src/config.vapi
69.1.2 by David King
Add intltool support to build system
121
84.1.3 by David King
Enable the XML tests only if xmllint is present
122
if HAVE_XMLLINT
84.1.2 by David King
Add tests for well-formed XML files
123
TESTS = \
124
	test-provider \
125
	test-service
126
127
test-provider: Makefile $(providers_DATA)
128
	$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
129
		echo "for provider in $(providers_DATA)" >> $@; \
130
		echo "do" >> $@; \
131
		echo "    $(XMLLINT) --noout $(top_builddir)/\$$provider || exit 1" >> $@; \
132
		echo "done" >> $@; \
133
		chmod +x $@
134
135
test-service: Makefile $(services_DATA)
136
	$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
137
		echo "for service in $(services_DATA)" >> $@; \
138
		echo "do" >> $@; \
139
		echo "    $(XMLLINT) --noout $(top_builddir)/\$$service || exit 1" >> $@; \
140
		echo "done" >> $@; \
141
		chmod +x $@
84.1.3 by David King
Enable the XML tests only if xmllint is present
142
endif # HAVE_XMLLINT
84.1.2 by David King
Add tests for well-formed XML files
143
76.1.8 by David King
Make providers subdirectory build non-recursively
144
CLEANFILES = \
76.1.9 by David King
Convert services subdirectory to non-recursive build
145
	$(services_DATA) \
84.1.2 by David King
Add tests for well-formed XML files
146
	$(providers_DATA) \
147
	$(TESTS)
76.1.8 by David King
Make providers subdirectory build non-recursively
148
69.1.2 by David King
Add intltool support to build system
149
DISTCLEANFILES = \
150
	intltool-extract \
151
	intltool-merge \
152
	intltool-update \
153
	po/.intltool-merge-cache
73.1.3 by David King
Generate GNU-style ChangeLog during make dist
154
76.1.8 by David King
Make providers subdirectory build non-recursively
155
dist-hook: bzr-changelog-hook
156
157
bzr-changelog-hook: Makefile
158
	$(AM_V_at)cd $(top_srcdir) && \
159
	if $(top_srcdir)/missing --run bzr log \
160
		--gnu-changelog > .ChangeLog.tmp; \
161
	then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
162
	else rm -f .ChangeLog.tmp; exit 1; fi
163
73.1.3 by David King
Generate GNU-style ChangeLog during make dist
164
.PHONY: bzr-changelog-hook