mirror of git://git.sysmocom.de/ofono
Fix broken dependency on include/ofono/*.h files
The fact that the directory exists does not prove that (all of) the header file symbolic links have been created. This is particularly annoying when a new header file gets added.
This commit is contained in:
parent
03d4dad98d
commit
484af7eec2
|
@ -12,13 +12,15 @@ nodist_include_HEADERS = version.h
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
all-local:
|
||||
@if [ ! -e ofono ]; then \
|
||||
mkdir ofono; \
|
||||
list='$(include_HEADERS)'; for i in $$list; \
|
||||
do $(LN_S) $(abs_top_srcdir)/include/$$i ofono/$$i; done; \
|
||||
list='$(nodist_include_HEADERS)'; for i in $$list; \
|
||||
do $(LN_S) $(abs_top_builddir)/include/$$i ofono/$$i; done; \
|
||||
fi
|
||||
@test -d ofono || mkdir ofono
|
||||
@list='$(include_HEADERS)'; for i in $$list; do \
|
||||
test -f ofono/$$i || \
|
||||
$(LN_S) $(abs_top_srcdir)/include/$$i ofono/$$i; \
|
||||
done
|
||||
@list='$(nodist_include_HEADERS)'; for i in $$list; do \
|
||||
test -f ofono/$$i || \
|
||||
$(LN_S) $(abs_top_builddir)/include/$$i ofono/$$i; \
|
||||
done
|
||||
|
||||
clean-local:
|
||||
@rm -rf ofono
|
||||
|
|
Loading…
Reference in New Issue