diff options
author | rbuj <[email protected]> | 2019-12-09 23:05:56 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2019-12-23 08:55:37 +0100 |
commit | d6318fc5174c6e5915ed22c53b17a681850c97c0 (patch) | |
tree | 52e0c82b9e6318f70ffb07fac79b0d396970a6f9 /mate-screenshot/src/Makefile.am | |
parent | b8b0f4f70656476e51c0a645875d07c8c8225626 (diff) | |
download | mate-utils-d6318fc5174c6e5915ed22c53b17a681850c97c0.tar.bz2 mate-utils-d6318fc5174c6e5915ed22c53b17a681850c97c0.tar.xz |
Use gresources for UI files
Diffstat (limited to 'mate-screenshot/src/Makefile.am')
-rw-r--r-- | mate-screenshot/src/Makefile.am | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/mate-screenshot/src/Makefile.am b/mate-screenshot/src/Makefile.am index 9ae05a73..e5104cbd 100644 --- a/mate-screenshot/src/Makefile.am +++ b/mate-screenshot/src/Makefile.am @@ -4,11 +4,20 @@ AM_CPPFLAGS = \ -I. \ -I$(srcdir) \ -DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ - -DUIDIR=\""$(datadir)/mate-screenshot"\" + $(NULL) bin_PROGRAMS = mate-screenshot -mate_screenshot_SOURCES = \ +BUILT_SOURCES = \ + screenshot-resources.c \ + screenshot-resources.h \ + $(NULL) + +nodist_mate_screenshot_SOURCES = \ + $(BUILT_SOURCES) \ + $(NULL) + +mate_screenshot_SOURCES = \ mate-screenshot.c \ screenshot-dialog.c \ screenshot-dialog.h \ @@ -32,7 +41,7 @@ mate_screenshot_CFLAGS = \ mate_screenshot_LDFLAGS = -export-dynamic -mate_screenshot_LDADD = \ +mate_screenshot_LDADD = \ $(XSHAPE_LIBS) \ $(GLIB_LIBS) \ $(GIO_LIBS) \ @@ -41,6 +50,13 @@ mate_screenshot_LDADD = \ $(GTK_LIBS) \ -lm +screenshot-resources.h screenshot-resources.c: $(srcdir)/../data/org.mate.screenshot.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/../data $(srcdir)/../data/org.mate.screenshot.gresource.xml) + $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir)/../data --generate --c-name screenshot $< + +CLEANFILES = \ + $(BUILT_SOURCES) \ + $(NULL) + install-exec-local: rm -f $(DESTDIR)$(bindir)/mate-panel-screenshot ln -s mate-screenshot $(DESTDIR)$(bindir)/mate-panel-screenshot |