]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
hello-c-gnome3: Fix "make distcheck".
authorBruno Haible <bruno@clisp.org>
Mon, 16 Dec 2024 21:18:45 +0000 (22:18 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 31 Dec 2024 10:10:02 +0000 (11:10 +0100)
* gettext-tools/examples/hello-c-gnome3/Makefile.am (BUILT_SOURCES): Add
hello.desktop.
(gschemas.compiled): Make it work in VPATH builds.
(CLEANFILES): Remove resources.c. Don't mention hello.desktop twice.
(MAINTAINERCLEANFILES): Add resources.c.
* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Remove also resources.c,
hello.desktop.in.

gettext-tools/examples/hello-c-gnome3/Makefile.am
gettext-tools/examples/hello-c-gnome3/autoclean.sh

index 39f3b03170a5f5c17b6ee3b9fb473e9caefd6ec3..9473dec113ff8761ed3eee489e2dcfe5b1d0d63d 100644 (file)
@@ -29,11 +29,9 @@ AM_CPPFLAGS = $(GTK_CFLAGS)
 # Link time dependencies.
 LDADD = $(GTK_LIBS) @LIBINTL@
 
-BUILT_SOURCES = gschemas.compiled resources.c
-
 # Compile GSettings schema.
 gschemas.compiled: hello.gschema.xml
-       $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) .
+       $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. $(srcdir)
 
 # Compile assets into a C source and link it with the application.
 resources.c: hello.gresource.xml hello.ui
@@ -59,12 +57,13 @@ hello.desktop.in: hello.desktop.in.in
 hello.desktop: hello.desktop.in
        $(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@
 
-CLEANFILES = $(BUILT_SOURCES) hello.desktop $(desktop_DATA)
+BUILT_SOURCES        = gschemas.compiled resources.c hello.desktop
+CLEANFILES           = gschemas.compiled             hello.desktop
+DISTCLEANFILES       =
+MAINTAINERCLEANFILES =                   resources.c hello.desktop.in
 
 # Additional files to be distributed.
 EXTRA_DIST = autogen.sh autoclean.sh hello.ui \
        hello.desktop.in.in hello.desktop.in \
        hello.gschema.xml \
        hello.gresource.xml
-
-MAINTAINERCLEANFILES = hello.desktop.in
index 9b8332fb282055fcc13b321d80e7054f54000af8..4c59cb2894cfbc28aeb1fa461fea9f6193b9a791 100755 (executable)
@@ -7,6 +7,9 @@
 test ! -f Makefile || make distclean
 rm -rf autom4te.cache
 
+# Files generated by "make" and distributed (see MAINTAINERCLEANFILES).
+rm -f resources.c hello.desktop.in
+
 # Brought in by autopoint.
 rm -f ABOUT-NLS
 rm -f config.rpath