diff options
author | Bastien Nocera <hadess@hadess.net> | 2018-06-18 18:20:50 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-06-18 18:21:55 +0200 |
commit | c937dabd1e4af3a0e467173e558641e2180b4878 (patch) | |
tree | 26ae8f76eafeee02252ded5591d620de4a715681 | |
parent | 21dcc00cdbd0f3a376253da0b492f18027f202e0 (diff) | |
download | upower-c937dabd1e4af3a0e467173e558641e2180b4878.tar.gz |
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.am | 6 |
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 |