demos: Fix distcheck

Make sure that we remove the files generated by glib-compile-resources
during distclean.
This commit is contained in:
Chun-wei Fan
2022-05-18 17:48:16 +08:00
parent bac9ff22f5
commit 0264e2d6a6
3 changed files with 5 additions and 1 deletions

View File

@@ -129,6 +129,6 @@ dist-hook: \
$(top_builddir)/win32/vs9/gtk3-demo.vcproj \
$(top_builddir)/win32/vs9/gtk3-demo-application.vcproj
DISTCLEANFILES = demos.h demos.h.win32
DISTCLEANFILES = demos.h demos.h.win32 demo_resources.c
-include $(top_srcdir)/git.mk

View File

@@ -27,6 +27,8 @@ gtk3_icon_browser_SOURCES = \
BUILT_SOURCES = \
resources.c
DISTCLEANFILES = resources.c
resources.c: iconbrowser.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/iconbrowser.gresource.xml)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/iconbrowser.gresource.xml \
--target=$@ --sourcedir=$(srcdir) --generate-source

View File

@@ -69,4 +69,6 @@ EXTRA_DIST += \
data/symbolic-source.svg \
meson.build
DISTCLEANFILES = widget_factory_resources.c
-include $(top_srcdir)/git.mk