mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 21:13:44 +00:00
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
24 lines
529 B
Makefile
24 lines
529 B
Makefile
|
|
CFG_FILES = find $(srcdir) -name '*.cfg*' | sed -e 's,^$(srcdir),,'
|
|
|
|
dist-hook:
|
|
for f in $$($(CFG_FILES)); do \
|
|
j="$(distdir)/$$f" && \
|
|
mkdir -p "$$(dirname $$j)" && \
|
|
$(INSTALL_DATA) $(srcdir)/$$f $$j; \
|
|
done
|
|
|
|
install-data-hook:
|
|
for f in $$($(CFG_FILES)); do \
|
|
j="$(DESTDIR)$(docdir)/examples/$$f" && \
|
|
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
|