From 4e318f5938ea6b1049d1e19d1e3f284eafe48cf7 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 23 May 2011 19:52:02 +0200 Subject: [PATCH] misc: Provide a uninstall-hook to remove the extra files Fix make distcheck to uninstall files that were installed by our custom hook. This is fixing: ERROR: files left after uninstall: ./share/doc/openbsc/examples/osmo-bsc_mgcp/mgcp.cfg ./share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc.cfg ./share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg ./share/doc/openbsc/examples/osmo-nitb/rbs2308/openbsc.cfg --- openbsc/doc/examples/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openbsc/doc/examples/Makefile.am b/openbsc/doc/examples/Makefile.am index b7eda49d6..8f14fdcf7 100644 --- a/openbsc/doc/examples/Makefile.am +++ b/openbsc/doc/examples/Makefile.am @@ -14,3 +14,10 @@ install-data-hook: mkdir -p "$$(dirname $$j)" && \ $(INSTALL_DATA) $(srcdir)/$$f $$j; \ done + +uninstall-hook: + @$(PRE_UNINSTALL) + for f in $$($(CFG_FILES)); do \ + j="$(DESTDIR)$(docdir)/examples/$$f" && \ + $(RM) $$j; \ + done