summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-03-07 13:19:50 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2007-03-07 13:19:50 -0800
commitc4fc47ecf8b8c24cba992960b9e663107951385f (patch)
tree20682502dcf407ad9f0141c782ceae98cc8fc3ac /v4l/Makefile
parent94199ec22e3e0381b17ac6bc5c2fcffe4db1540a (diff)
downloadmediapointer-dvb-s2-c4fc47ecf8b8c24cba992960b9e663107951385f.tar.gz
mediapointer-dvb-s2-c4fc47ecf8b8c24cba992960b9e663107951385f.tar.bz2
build: speed up link creation
From: Trent Piepho <xyzzy@speakeasy.org> Everytime a build is started, the build system creates links to every single source file from the v4l directory. This patch changes the command used, to one that is about 15x faster. When building just one file, the creating the links could take the majority of the total build time. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index abc53110c..ad499751d 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -231,8 +231,8 @@ endif
links::
@echo creating symbolic links...
- @find ../linux/drivers/media -name '*.[ch]' -type f -exec ln -sf '{}' . \;
- @find ../linux/sound -name '*.[ch]' -type f -exec ln -sf '{}' . \;
+ @find ../linux/drivers/media -name '*.[ch]' -type f -print0 | xargs -0n 255 ln -sf --target-directory=.
+ @find ../linux/sound -name '*.[ch]' -type f -print0 | xargs -0n 255 ln -sf --target-directory=.
# This link is so code with #include "oss/*.h" will find its header files
oss: