[beast] BUILD: roll our own distuninstallcheck, now we use no-dist autotools
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] BUILD: roll our own distuninstallcheck, now we use no-dist autotools
- Date: Sat, 17 Jun 2017 10:26:17 +0000 (UTC)
commit 1b9b6d6e7103275995c0bc29e4ed1373ba4f8721
Author: Tim Janik <timj gnu org>
Date: Sat Jun 17 12:25:54 2017 +0200
BUILD: roll our own distuninstallcheck, now we use no-dist autotools
Signed-off-by: Tim Janik <timj gnu org>
Makefile.am | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6ad4a15..5c79b97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -157,7 +157,15 @@ distcheck: distgit
&& cd "$(abs_top_builddir)" \
&& { chmod u+w -R "$$DCDIR/" && rm -r "$$DCDIR/" ; } \
&& echo "OK: archive ready for distribution: $$TARBALL" | sed '1h; 1s/./=/g; 1p; 1x; $$p; $$x'
-.PHONY: distcheck distuninstallcheck-hook
+distuninstallcheck:
+ @test -n '$(distuninstallcheck_dir)' || { echo '$@: missing distuninstallcheck_dir' >&2; false; }
+ @cd '$(distuninstallcheck_dir)' && \
+ test `$(distuninstallcheck_listfiles) | sed 's|^\./|$(prefix)/|' | wc -l` -eq 0 \
+ || { echo "$@: ERROR: files left after uninstall:" ; \
+ $(distuninstallcheck_listfiles) ; \
+ false; } >&2
+distuninstallcheck_listfiles = find . -type f -print
+.PHONY: distcheck distuninstallcheck distuninstallcheck-hook
# == distcheck-checks ==
DISTCHECK_PO = 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]