[PATCH 2/3] [buildsys] don't copy but link source files into build directories
Not really large difference, but linking lots of files is more
efficient than copying. Source files aren't changed during build.
This change depends on the previous (don't copy .dotfiles), since
one of possible .dotfiles to be found in (unclean) top source dir
is .config, which should not be linked. But we don't include
.dotfiles into the list of files to be linked/copied anymore.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/debian/rules b/debian/rules
index ddb2945..7d74768 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,7 +27,7 @@ $(STAMPS_DIR)/setup_%: $(STAMPS_DIR)/patch
dh_testdir
rm -rf '$(DIR)'
mkdir -p '$(DIR)'
- cp -a $(SOURCE_FILES) '$(DIR)'
+ cp -a -l $(SOURCE_FILES) '$(DIR)'
cat debian/config/os/$(DEB_HOST_ARCH_OS) debian/config/pkg/$* > '$(DIR)'/.config
$(MAKE) -C '$(DIR)' oldconfig
touch $@
--
1.7.2.3
Reply to: