[build] Fix Makefile color output, not all echos support \e

This commit is contained in:
Kevin Lange 2011-02-10 12:59:44 -06:00
parent cb913d32fc
commit fa79d54ce2

View File

@ -13,40 +13,40 @@ GENEXT = genext2fs
all: kernel initrd
install: kernel initrd
@${ECHO} -n "\e[34m -- Installing to /boot...\e[0m"
@${ECHO} -n "\033[34m -- Installing to /boot...\033[0m"
@cp kernel /boot/toaruos-kernel
@cp initrd /boot/toaruos-initrd
@${ECHO} "\r\e[34;1m -- Kernel and ramdisk installed.\e[0m"
@${ECHO} "\r\033[34;1m -- Kernel and ramdisk installed.\033[0m"
run: kernel initrd
${EMU} -kernel kernel -initrd initrd
kernel: start.o link.ld main.o ${MODULES} ${FILESYSTEMS}
@${ECHO} -n "\e[32m LD $<\e[0m"
@${ECHO} -n "\033[32m LD $<\033[0m"
@${LD} -T link.ld -o kernel *.o core/*.o core/fs/*.o
@${ECHO} "\r\e[32;1m LD $<\e[0m"
@${ECHO} "\r\033[32;1m LD $<\033[0m"
start.o: start.asm
@${ECHO} -n "\e[32m nasm start.asm\e[0m"
@${ECHO} -n "\033[32m nasm start.asm\033[0m"
@${NASM} -o start.o start.asm
@${ECHO} "\r\e[32;1m nasm start.asm\e[0m"
@${ECHO} "\r\033[32;1m nasm start.asm\033[0m"
%.o: %.c
@${ECHO} -n "\e[32m CC $<\e[0m"
@${ECHO} -n "\033[32m CC $<\033[0m"
@${CC} ${CFLAGS} -I./include -c -o $@ $<
@${ECHO} "\r\e[32;1m CC $<\e[0m"
@${ECHO} "\r\033[32;1m CC $<\033[0m"
initrd: fs
@${ECHO} -n "\e[32m initrd Generating initial RAM disk\e[0m"
@${ECHO} -n "\033[32m initrd Generating initial RAM disk\033[0m"
@-rm -f initrd
@${GENEXT} -d fs -q -b 249 initrd
@${ECHO} "\r\e[32;1m initrd Generated initial RAM disk image\e[0m"
@${ECHO} "\r\033[32;1m initrd Generated initial RAM disk image\033[0m"
clean:
@${ECHO} -n "\e[31m RM Cleaning...\e[0m"
@${ECHO} -n "\033[31m RM Cleaning...\033[0m"
@-rm -f *.o kernel
@-rm -f bootdisk.img
@-rm -f initrd
@-rm -f core/*.o
@-rm -f core/fs/*.o
@${ECHO} "\r\e[31;1m RM Finished cleaning.\e[0m"
@${ECHO} "\r\033[31;1m RM Finished cleaning.\033[0m"