Index: /trunk/src/VBox/Installer/linux/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Installer/linux/Makefile.kmk	(revision 65993)
+++ /trunk/src/VBox/Installer/linux/Makefile.kmk	(revision 65994)
@@ -241,11 +241,12 @@
 	vboxweb-service.sh \
 	VBox.png \
-	unattended_templates/debian_preseed.cfg \
-	unattended_templates/ubuntu_preseed.cfg \
-	unattended_templates/fedora_ks.cfg \
-	unattended_templates/ol_ks.cfg \
-	unattended_templates/redhat67_ks.cfg \
-	unattended_templates/win_nt5_unattended.sif \
-	unattended_templates/win_nt6_unattended.xml
+	$(if $(VBOX_WITH_UNATTENDED),
+	  unattended_templates/debian_preseed.cfg \
+	  unattended_templates/ubuntu_preseed.cfg \
+	  unattended_templates/fedora_ks.cfg \
+	  unattended_templates/ol_ks.cfg \
+	  unattended_templates/redhat67_ks.cfg \
+	  unattended_templates/win_nt5_unattended.sif \
+	  unattended_templates/win_nt6_unattended.xml,)
 
 ifdef VBOX_WITH_EXTPACK
@@ -520,5 +521,5 @@
 	archive/components \
 	archive/nls \
-	archive/unattended_templates \
+	$(if $(VBOX_WITH_UNATTENDED),archive/unattended_templates,) \
 	$(if $(VBOX_WITH_ORACLE_QT),$(if $(VBOX_WITH_QTGUI_V5),,\
 	  archive/accessible),) \
