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:
Rémi Denis-Courmont 2009-08-24 13:24:08 +03:00 committed by Aki Niemi
parent 03d4dad98d
commit 484af7eec2
1 changed files with 9 additions and 7 deletions

View File

@ -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