summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-27 17:30:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-27 17:30:43 +0000
commit7ec1fa01d0f039ab1d066b8a2fed5d15c0a85e45 (patch)
tree443468d3457641d5ebbf093e38183db46a87707f /Makefile
parentc8229b8b052d41f9e9df0553b015e88a7493f8f7 (diff)
downloadbootloader-theme-7ec1fa01d0f039ab1d066b8a2fed5d15c0a85e45.tar
bootloader-theme-7ec1fa01d0f039ab1d066b8a2fed5d15c0a85e45.tar.gz
bootloader-theme-7ec1fa01d0f039ab1d066b8a2fed5d15c0a85e45.tar.bz2
bootloader-theme-7ec1fa01d0f039ab1d066b8a2fed5d15c0a85e45.tar.xz
bootloader-theme-7ec1fa01d0f039ab1d066b8a2fed5d15c0a85e45.zip
do not have files both in the tarball and in the directory
- for syslinux, some files must be in "bootlogo", while most of them can be outside of "bootlogo" - for grub, "message.dir" files are all in "message" file, so message.dir is useless
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e68d12c..7c9cdcb 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,8 @@ BFLAGS = -O -v -L ../..
SUBDIRS = fonts help-boot help-install po src
+IN_CPIO_INSTALL = init $(notdir $(wildcard fonts/*.fnt)) $(notdir $(wildcard po/*.tr))
+
DEFAULT_LANG =
.PHONY: all clean distclean themes $(SUBDIRS)
@@ -49,7 +51,8 @@ ifdef DEFAULT_LANG
@echo $(DEFAULT_LANG) >bootlogo.dir/lang
endif
@sh -c 'cd bootlogo.dir; chmod +t * ; chmod -t init languages'
- @sh -c 'cd bootlogo.dir; echo * | sed -e "s/ /\n/g" | cpio --quiet -o >../bootlogo'
+ @sh -c 'cd bootlogo.dir; echo $(IN_CPIO_INSTALL) | sed -e "s/ /\n/g" | cpio --quiet -o >../bootlogo'
+ @cd bootlogo.dir; rm $(IN_CPIO_INSTALL)
message: src/main.bin help-boot/.ready po/.ready fonts/.ready
@rm -rf message.dir
@@ -63,6 +66,7 @@ ifdef DEFAULT_LANG
@echo $(DEFAULT_LANG) >>message.dir/languages
endif
@sh -c 'cd message.dir; echo * | sed -e "s/ /\n/g" | cpio --quiet -o >../message'
+ @rm -r message.dir
clean:
@for i in $(SUBDIRS) ; do [ ! -f $$i/Makefile ] || make -C $$i clean || break ; done