aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/doc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-23 19:52:02 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-31 00:37:47 +0200
commit4e318f5938ea6b1049d1e19d1e3f284eafe48cf7 (patch)
tree10723e3c80ea3fdac01cda35a0505575b68c7afd /openbsc/doc
parent4e4fa4ce9b1c84b2aa968e86b0823ed6e1eced7a (diff)
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
Diffstat (limited to 'openbsc/doc')
-rw-r--r--openbsc/doc/examples/Makefile.am7
1 files changed, 7 insertions, 0 deletions
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