Make sure that stuff does not break if extra_postinstall_command

is undefined.

svn path=/trunk/kernel/source/linux-2.6-2.6.12/; revision=3535
This commit is contained in:
Jurij Smakov 2005-07-16 05:23:49 +00:00
parent c6fff45fc2
commit f98fa3ea65
1 changed files with 8 additions and 3 deletions

11
debian/Makefile vendored
View File

@ -156,10 +156,15 @@ header-install-$(subarch): templates/header-install.in
# The way to make the correct package names is to make a
# subarch-specific post-install script...
#
ifdef extra_postinstall_command
extra_command := $(extra_postinstall_command)
else
extra_command := true
endif
post-install-$(subarch): templates/post-install.in
sed -e 's,@initrd_modules@,$(initrd_modules),' \
-e 's,@append_subarch@,$(append),' \
-e 's,@extra_postinstall_command@,$(extra_postinstall_command),' \
sed -e 's,@initrd_modules@,$(initrd_modules),' \
-e 's,@append_subarch@,$(append),' \
-e 's,@extra_postinstall_command@,$(extra_command),' \
templates/post-install.in > post-install-$(subarch)
#
# Generates the kernel config file for a subarch by merging