diff options
author | Jerin Jacob <jerin.jacob@caviumnetworks.com> | 2014-06-13 12:27:32 +0530 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-06-17 19:16:42 +0400 |
commit | 2d984ba0a4d8c066c8d670cb87a308a79d1eb776 (patch) | |
tree | 10d98f7b7f533f14b6a062b8518d23ef5e3eadb2 /Makefile.inc | |
parent | f8464877063978edd52432438bbf89ef550c9c2b (diff) |
Fix the oddity in compiling test applications in no-change rebuild scenario.
This is a side effect of using "cp -r" command for copying the header files to build directory.
Since the "cp -r" command will not preserve the time stamp of source file
while copying,make will treat as new header file and build the test apps again.
This can be fixed by adding "-p" option in cp command or using "rsync" to copy the file.
"headers_install" target demands for a sync operation rather than copy operation,
so rsync may be the right candidate here and it will make sure build/include/*.h clean
for back to back different platform build.
Reported-by: steve.mcintyre@linaro.org
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reviewed-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc index fab7989a0..ff16043c4 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -17,6 +17,7 @@ MKDIR := mkdir -p RMDIR := rm -rf RM := rm -f COPY := cp -r +SYNC := rsync -a --delete ifneq ($(VERBOSE),yes) Q = @ |