summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-06-18 18:20:50 +0200
committerBastien Nocera <hadess@hadess.net>2018-06-18 18:21:55 +0200
commitc937dabd1e4af3a0e467173e558641e2180b4878 (patch)
tree26ae8f76eafeee02252ded5591d620de4a715681
parent21dcc00cdbd0f3a376253da0b492f18027f202e0 (diff)
linux: Clean up after running test suite in "distcheck"
Don't leave the history files installed when running "make uninstall". Those files will likely have been created by the test suite when running "make distcheck"
-rw-r--r--src/linux/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linux/Makefile.am b/src/linux/Makefile.am
index bacf815..0121067 100644
--- a/src/linux/Makefile.am
+++ b/src/linux/Makefile.am
@@ -75,4 +75,10 @@ libupshared_la_LIBADD = $(GIO_LIBS)
clean-local :
rm -f *~
+uninstall-hook:
+ rm -f $(DESTDIR)$(localstatedir)/lib/upower/history-* && \
+ rmdir $(DESTDIR)$(localstatedir)/lib/upower && \
+ rmdir $(DESTDIR)$(localstatedir)/lib && \
+ rmdir $(DESTDIR)$(localstatedir)
+
-include $(top_srcdir)/git.mk