aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-02-16 19:28:10 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-02-16 19:28:10 +0100
commit5f29b2a3e4b1744596defea708a7f717d737be53 (patch)
tree6f660b3a795fdad5e1cd5107b8737606fcbf8cf5
parente76730160da068ce4a358297ac171f0dd656f69c (diff)
downloadayatana-indicator-printers-5f29b2a3e4b1744596defea708a7f717d737be53.tar.gz
ayatana-indicator-printers-5f29b2a3e4b1744596defea708a7f717d737be53.tar.bz2
ayatana-indicator-printers-5f29b2a3e4b1744596defea708a7f717d737be53.zip
Also generate cups-notifier in the text directory
-rw-r--r--src/Makefile.am2
-rw-r--r--test/Makefile.am16
2 files changed, 15 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index bedc091..2c87ad0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,7 +17,7 @@ cups_notifier_sources = \
cups-notifier.c \
cups-notifier.h
-$(cups_notifier_sources): $(top_srcdir)/src/org.cups.cupsd.Notifier.xml
+$(cups_notifier_sources): org.cups.cupsd.Notifier.xml
gdbus-codegen \
--interface-prefix org.cups.cupsd \
--c-namespace Cups \
diff --git a/test/Makefile.am b/test/Makefile.am
index d3e10bb..4b0439d 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -2,10 +2,20 @@
noinst_PROGRAMS = mock-cups-notifier
DISTCLEANFILES = mock-cups-notifier
+cups_notifier_sources = \
+ cups-notifier.c \
+ cups-notifier.h
+
+$(cups_notifier_sources): $(top_srcdir)/src/org.cups.cupsd.Notifier.xml
+ gdbus-codegen \
+ --interface-prefix org.cups.cupsd \
+ --c-namespace Cups \
+ --generate-c-code cups-notifier \
+ $^
+
mock_cups_notifier_SOURCES = \
mock-cups-notifier.c \
- $(top_builddir)/src/cups-notifier.c \
- $(top_builddir)/src/cups-notifier.h
+ $(cups_notifier_sources)
mock_cups_notifier_CPPFLAGS = \
$(SERVICE_CFLAGS) \
@@ -13,3 +23,5 @@ mock_cups_notifier_CPPFLAGS = \
mock_cups_notifier_LDADD = $(SERVICE_LIBS)
+BUILT_SOURCES = $(cups_notifier_sources)
+