[gnome-software/wip/rancell/reviews-3-18: 5/5] Tidy up Makefile for new D-Bus code



commit 10935baccc1dd44c835f2882076b4e8d555d001e
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Jan 22 14:05:48 2016 +1300

    Tidy up Makefile for new D-Bus code

 src/plugins/Makefile.am |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index bc644be..349e9a1 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -136,21 +136,23 @@ libgs_plugin_local_ratings_la_CFLAGS = $(GS_PLUGIN_CFLAGS) $(WARN_CFLAGS)
 libgs_plugin_ubuntu_reviews_la_SOURCES =               \
        gs-plugin-ubuntu-reviews.c                      \
        ubuntu-sso-accounts-proxy.c                     \
-       ubuntu-sso-credentials-proxy.c
+       ubuntu-sso-accounts-proxy.h                     \
+       ubuntu-sso-credentials-proxy.c                  \
+       ubuntu-sso-credentials-proxy.h
 libgs_plugin_ubuntu_reviews_la_LIBADD = $(GS_PLUGIN_LIBS) $(SOUP_LIBS) $(JSON_GLIB_LIBS) $(OAUTH_LIBS) 
$(SQLITE_LIBS)
 libgs_plugin_ubuntu_reviews_la_LDFLAGS = -module -avoid-version
 libgs_plugin_ubuntu_reviews_la_CFLAGS = $(GS_PLUGIN_CFLAGS) $(WARNINGFLAGS_C)
 
-ubuntu-sso-accounts-proxy.c: com.ubuntu.sso.UserManagement.xml
+ubuntu-sso-accounts-proxy.c ubuntu-sso-accounts-proxy.h: com.ubuntu.sso.UserManagement.xml Makefile
        $(GDBUS_CODEGEN) --interface-prefix com.ubuntu.sso \
                         --generate-c-code ubuntu-sso-accounts-proxy \
                         --c-namespace UbuntuSSO \
                         --annotate 'com.ubuntu.sso.UserManagement' \
                                    org.gtk.GDBus.C.Name \
                                    Accounts \
-                        com.ubuntu.sso.UserManagement.xml
+                        $<
 
-ubuntu-sso-credentials-proxy.c: com.ubuntu.sso.CredentialsManagement.xml
+ubuntu-sso-credentials-proxy.c ubuntu-sso-credentials-proxy.h: com.ubuntu.sso.CredentialsManagement.xml 
Makefile
        $(GDBUS_CODEGEN) --interface-prefix com.ubuntu.sso \
                         --generate-c-code ubuntu-sso-credentials-proxy \
                         --c-namespace UbuntuSSO \
@@ -160,7 +162,7 @@ ubuntu-sso-credentials-proxy.c: com.ubuntu.sso.CredentialsManagement.xml
                         --annotate 'com.ubuntu.sso.CredentialsManagement.find_credentials_sync()' \
                                    org.gtk.GDBus.C.Name \
                                    find_credentials_and_wait \
-                        com.ubuntu.sso.CredentialsManagement.xml
+                        $<
 
 libgs_plugin_packagekit_la_SOURCES =                   \
        gs-plugin-packagekit.c                          \
@@ -231,4 +233,10 @@ GITIGNOREFILES =                                   \
        ubuntu-sso-credentials-proxy.h                  \
        ubuntu-sso-credentials-proxy.c
 
+CLEANFILES =                                   \
+       ubuntu-sso-accounts-proxy.c                     \
+       ubuntu-sso-accounts-proxy.h                     \
+       ubuntu-sso-credentials-proxy.c                  \
+       ubuntu-sso-credentials-proxy.h
+
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]