From: Bruno Haible Date: Thu, 18 Oct 2018 18:19:47 +0000 (+0200) Subject: examples: hello-csharp*: Improve 'make maintainer-clean'. X-Git-Tag: v0.20~333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a8152a217b5560ca95324039c38a1d2b0b81b0;p=thirdparty%2Fgettext.git examples: hello-csharp*: Improve 'make maintainer-clean'. * gettext-tools/examples/hello-csharp*/po/Makefile.am (MAINTAINERCLEANFILES): Don't list the $(RESOURCESDLLFILES) here. (maintainer-clean-local): Instead, remove them and their parent directories here. --- diff --git a/gettext-tools/examples/hello-csharp-forms/po/Makefile.am b/gettext-tools/examples/hello-csharp-forms/po/Makefile.am index 80d1e503a..56279c59b 100644 --- a/gettext-tools/examples/hello-csharp-forms/po/Makefile.am +++ b/gettext-tools/examples/hello-csharp-forms/po/Makefile.am @@ -216,7 +216,15 @@ MOSTLYCLEANFILES += remove-potcdate.sed MOSTLYCLEANFILES += stamp-poT MOSTLYCLEANFILES += core core.* *.stackdump $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po -MAINTAINERCLEANFILES = stamp-po $(RESOURCESDLLFILES) +MAINTAINERCLEANFILES = stamp-po +maintainer-clean-local: + if test -n "$(RESOURCESDLLFILES)"; then \ + for file in $(RESOURCESDLLFILES); do \ + rm -f "$$file"; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$$dir"; then rmdir "$$dir"; fi; \ + done; \ + fi EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(RESOURCESDLLFILES) diff --git a/gettext-tools/examples/hello-csharp/po/Makefile.am b/gettext-tools/examples/hello-csharp/po/Makefile.am index 80d1e503a..56279c59b 100644 --- a/gettext-tools/examples/hello-csharp/po/Makefile.am +++ b/gettext-tools/examples/hello-csharp/po/Makefile.am @@ -216,7 +216,15 @@ MOSTLYCLEANFILES += remove-potcdate.sed MOSTLYCLEANFILES += stamp-poT MOSTLYCLEANFILES += core core.* *.stackdump $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po -MAINTAINERCLEANFILES = stamp-po $(RESOURCESDLLFILES) +MAINTAINERCLEANFILES = stamp-po +maintainer-clean-local: + if test -n "$(RESOURCESDLLFILES)"; then \ + for file in $(RESOURCESDLLFILES); do \ + rm -f "$$file"; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$$dir"; then rmdir "$$dir"; fi; \ + done; \ + fi EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(RESOURCESDLLFILES)