~ken-vandine/account-plugins/uoa-create

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 \
18
	--pkg accounts \
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
76.1.8 by David King
Make providers subdirectory build non-recursively
52
# Extract transatable strings from .provider files
53
%.provider: %.provider.in $(INTLTOOL_MERGE)
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
54
	$(AM_V_at)$(MKDIR_P) $(builddir)/data/providers
76.1.8 by David King
Make providers subdirectory build non-recursively
55
	$(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@
56
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
57
providers_in_in_files = \
58
	data/providers/facebook.provider.in.in \
59
	data/providers/flickr.provider.in.in \
60
	data/providers/foursquare.provider.in.in \
61
	data/providers/google.provider.in.in \
62
	data/providers/identica.provider.in.in \
95.1.16 by Jonathan Davies
Added missing \ to Makefile.am.
63
	data/providers/linkedin.provider.in.in \
98.1.1 by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449).
64
	data/providers/instagram.provider.in.in \
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
65
	data/providers/sina.provider.in.in \
66
	data/providers/sohu.provider.in.in \
67
	data/providers/twitter.provider.in.in \
95.1.13 by Jonathan Davies
Place files in alphabetical order.
68
	data/providers/windows-live.provider.in.in
76.1.8 by David King
Make providers subdirectory build non-recursively
69
70
providers_DATA = \
89.3.1 by Alberto Mardegan
Add a generic OAuth plugin
71
	$(providers_in_in_files:.provider.in.in=.provider)
73.1.3 by David King
Generate GNU-style ChangeLog during make dist
72
76.1.9 by David King
Convert services subdirectory to non-recursive build
73
# Extract translatable strings from .service files
74
%.service: %.service.in $(INTLTOOL_MERGE)
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
75
	$(AM_V_at)$(MKDIR_P) $(builddir)/data/services
76.1.9 by David King
Convert services subdirectory to non-recursive build
76
	$(INTLTOOL_V_MERGE) LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_MERGE_V_OPTIONS) --no-translations -x -u $< $@
77
78
services_in_files = \
79
	data/services/facebook-im.service.in \
80
	data/services/facebook-microblog.service.in \
81
	data/services/facebook-sharing.service.in \
82
	data/services/flickr-microblog.service.in \
83
	data/services/flickr-sharing.service.in \
84
	data/services/foursquare-microblog.service.in \
85
	data/services/google-docs.service.in \
86
	data/services/google-im.service.in \
87
	data/services/identica-microblog.service.in \
95.1.2 by Jonathan Davies
Changes need for linkedin pieces.
88
	data/services/linkedin-microblog.service.in \
98.1.1 by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449).
89
	data/services/instagram-microblog.service.in \
76.1.9 by David King
Convert services subdirectory to non-recursive build
90
	data/services/picasa.service.in \
91
	data/services/sina-microblog.service.in \
92
	data/services/sohu-microblog.service.in \
93
	data/services/twitter-microblog.service.in \
94
	data/services/wlm.service.in
95
96
services_DATA = \
97
	$(services_in_files:.service.in=.service)
98
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
99
webkitoptionsdir = $(sysconfdir)/signon-ui/webkit-options.d
100
dist_webkitoptions_DATA = \
101
	data/webkit-options/accounts.google.com.conf \
98.1.1 by Andrew Starr-Bochicchio
Added account-plugin-instagram (LP: #1167449).
102
	data/webkit-options/api.instagram.com.conf \
97.1.1 by Zhang Zhao
Fix sina authentication
103
	data/webkit-options/api.weibo.com.conf \
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
104
	data/webkit-options/api.t.sohu.com.conf \
105
	data/webkit-options/api.twitter.com.conf \
106
	data/webkit-options/foursquare.com.conf \
107
	data/webkit-options/identi.ca.conf \
108
	data/webkit-options/login.live.com.conf \
109
	data/webkit-options/login.yahoo.com.conf \
78.2.2 by Alberto Mardegan
Force mobile version of Yahoo Flickr login
110
	data/webkit-options/secure.flickr.com.conf \
95.1.2 by Jonathan Davies
Changes need for linkedin pieces.
111
	data/webkit-options/www.facebook.com.conf \
112
	data/webkit-options/www.linkedin.com.conf
76.1.10 by David King
Switch webkit-options subdirectory to build non-recursively
113
76.1.6 by David King
Convert tools subdirectory to non-recursive build
114
dist_bin_SCRIPTS = \
115
	tools/account-console
116
19.1.1 by Alberto Mardegan
Add Facebook and Google plugins.
117
dist_noinst_DATA = \
76.1.9 by David King
Convert services subdirectory to non-recursive build
118
	$(services_in_files) \
76.1.3 by David King
Remove old VAPI files
119
	src/config.vapi
69.1.2 by David King
Add intltool support to build system
120
84.1.3 by David King
Enable the XML tests only if xmllint is present
121
if HAVE_XMLLINT
84.1.2 by David King
Add tests for well-formed XML files
122
TESTS = \
123
	test-provider \
124
	test-service
125
126
test-provider: Makefile $(providers_DATA)
127
	$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
128
		echo "for provider in $(providers_DATA)" >> $@; \
129
		echo "do" >> $@; \
130
		echo "    $(XMLLINT) --noout $(top_builddir)/\$$provider || exit 1" >> $@; \
131
		echo "done" >> $@; \
132
		chmod +x $@
133
134
test-service: Makefile $(services_DATA)
135
	$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
136
		echo "for service in $(services_DATA)" >> $@; \
137
		echo "do" >> $@; \
138
		echo "    $(XMLLINT) --noout $(top_builddir)/\$$service || exit 1" >> $@; \
139
		echo "done" >> $@; \
140
		chmod +x $@
84.1.3 by David King
Enable the XML tests only if xmllint is present
141
endif # HAVE_XMLLINT
84.1.2 by David King
Add tests for well-formed XML files
142
76.1.8 by David King
Make providers subdirectory build non-recursively
143
CLEANFILES = \
76.1.9 by David King
Convert services subdirectory to non-recursive build
144
	$(services_DATA) \
84.1.2 by David King
Add tests for well-formed XML files
145
	$(providers_DATA) \
146
	$(TESTS)
76.1.8 by David King
Make providers subdirectory build non-recursively
147
69.1.2 by David King
Add intltool support to build system
148
DISTCLEANFILES = \
149
	intltool-extract \
150
	intltool-merge \
151
	intltool-update \
152
	po/.intltool-merge-cache
73.1.3 by David King
Generate GNU-style ChangeLog during make dist
153
76.1.8 by David King
Make providers subdirectory build non-recursively
154
dist-hook: bzr-changelog-hook
155
156
bzr-changelog-hook: Makefile
157
	$(AM_V_at)cd $(top_srcdir) && \
158
	if $(top_srcdir)/missing --run bzr log \
159
		--gnu-changelog > .ChangeLog.tmp; \
160
	then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
161
	else rm -f .ChangeLog.tmp; exit 1; fi
162
73.1.3 by David King
Generate GNU-style ChangeLog during make dist
163
.PHONY: bzr-changelog-hook