summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-08-24 13:24:08 +0300
committerAki Niemi <aki.niemi@nokia.com>2009-08-24 13:35:54 +0300
commit484af7eec280c8413d3ab5f01eded9860992b61c (patch)
tree029ba77b1ed1f5a12ac46fbc5a21aff80f17a4bb
parent03d4dad98d623fd319eaf8e6aa38b1099cbb9cd1 (diff)
downloadofono-484af7eec280c8413d3ab5f01eded9860992b61c.tar.bz2
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.
-rw-r--r--include/Makefile.am16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 5744663f..bc44606a 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -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