add doc/examples, Makefile.am adds all *.cfg files generically
doc/examples/Makefile.am taken from openbsc/openbsc/doc/examples. Change-Id: I1fadad4deb7f73d2b3aa753a84a76ba5b9bf9574
This commit is contained in:
parent
4d91ab277b
commit
01c71fc2dd
|
@ -43,4 +43,5 @@ AC_OUTPUT(
|
|||
include/osmocom/rua/Makefile
|
||||
include/osmocom/iuh/Makefile
|
||||
doc/Makefile
|
||||
doc/examples/Makefile
|
||||
)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
SUBDIRS = examples
|
||||
|
||||
EXTRA_DIST = \
|
||||
hnb_cs_lu.msc \
|
||||
hnb_cs_mo_call.msc \
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
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
|
Loading…
Reference in New Issue