From b20e02869e6af117adabe84a444022c7fe2fc046 Mon Sep 17 00:00:00 2001 From: Peter Volkov Date: Mon, 18 Jan 2010 12:08:36 +0300 Subject: [PATCH] build: fix installation when only modules in subdirs are enabled In case only modules that are built in subdirectories of extensions are enabled (and thus nothing is build in extensions directory itself) installation fails with the error (only build_ACCOUNT=y in mconfig): install -pm0755 "/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image/ //usr/local/libexec/xtables"; install: missing destination file operand after "/vt/portage/tmp/portage/net-firewall/xtables-addons-1.21/image/ //usr/local/libexec/xtables" Try `install --help' for more information. make[3]: *** [install] Error 1 --- Makefile.iptrules.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.iptrules.in b/Makefile.iptrules.in index 8be21fc..85e736c 100644 --- a/Makefile.iptrules.in +++ b/Makefile.iptrules.in @@ -47,7 +47,7 @@ all: ${targets} install: ${targets} @for i in ${subdirs_list}; do ${MAKE} -C $$i $@; done; install -dm0755 "${DESTDIR}/${xtlibdir}"; - install -pm0755 $^ "${DESTDIR}/${xtlibdir}"; + @for i in $^; do install -pm0755 $$i "${DESTDIR}/${xtlibdir}"; done; clean: @for i in ${subdirs_list}; do ${MAKE} -C $$i $@; done;