summaryrefslogtreecommitdiff
path: root/netspeed/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/src/Makefile.am')
-rw-r--r--netspeed/src/Makefile.am28
1 files changed, 27 insertions, 1 deletions
diff --git a/netspeed/src/Makefile.am b/netspeed/src/Makefile.am
index 27fb82d3..26d5b854 100644
--- a/netspeed/src/Makefile.am
+++ b/netspeed/src/Makefile.am
@@ -1,3 +1,9 @@
+NULL =
+
+builder_files = \
+ netspeed-preferences.ui \
+ $(NULL)
+
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(includedir) \
@@ -9,11 +15,31 @@ AM_CPPFLAGS = \
libexec_PROGRAMS = mate-netspeed-applet
-mate_netspeed_applet_SOURCES = backend.h backend.c netspeed.c
+BUILT_SOURCES = netspeed-resources.c netspeed-resources.h
+nodist_mate_netspeed_applet_SOURCES = $(BUILT_SOURCES)
+mate_netspeed_applet_SOURCES = \
+ backend.h \
+ backend.c \
+ netspeed.c \
+ $(NULL)
mate_netspeed_applet_LDADD = $(GIO_LIBS) $(GTOP_APPLETS_LIBS) \
$(MATE_APPLETS4_LIBS) \
$(IWLIB) $(INTLLIBS) -lm
+netspeed-resources.c: netspeed-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/netspeed-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name netspeed $<
+
+netspeed-resources.h: netspeed-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/netspeed-resources.gresource.xml)
+ $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name netspeed $<
+
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ $(NULL)
+
+EXTRA_DIST = \
+ $(builder_files) \
+ netspeed-resources.gresource.xml \
+ $(NULL)
-include $(top_srcdir)/git.mk