diff options
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | test/Makefile.am | 16 |
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) + |