summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorMichael Brown2007-09-09 00:38:17 +0200
committerMichael Brown2007-09-09 00:38:17 +0200
commit6f799db5bd64ad408d7903679ac4d40ef9f48958 (patch)
treea926b532ff047767764f9bc398c6abbaf1b95a4e /src/Makefile
parentCheck for correct block number in tftp_rx_data(). (diff)
downloadipxe-6f799db5bd64ad408d7903679ac4d40ef9f48958.tar.gz
ipxe-6f799db5bd64ad408d7903679ac4d40ef9f48958.tar.xz
ipxe-6f799db5bd64ad408d7903679ac4d40ef9f48958.zip
Use "/bin/echo -e" instead of shell builtin echo; some shells don't
implement the -e option. (Thanks to Jim McQuillan for this suggestion.)
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/Makefile b/src/Makefile
index 0f8ddca2..0682dc5a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,30 +42,31 @@ include arch/$(ARCH)/Config
# message.
#
noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk $(BIN)/gpxe.iso $(BIN)/gpxe.usb
- @echo '==========================================================='
- @echo
- @echo 'To create a bootable floppy, type'
- @echo ' cat $(BIN)/gpxe.dsk > /dev/fd0'
- @echo 'where /dev/fd0 is your floppy drive. This will erase any'
- @echo 'data already on the disk.'
- @echo
- @echo 'To create a bootable USB key, type'
- @echo ' cat $(BIN)/gpxe.usb > /dev/sdX'
- @echo 'where /dev/sdX is your USB key, and is *not* a real hard'
- @echo 'disk on your system. This will erase any data already on'
- @echo 'the USB key.'
- @echo
- @echo 'To create a bootable CD-ROM, burn the ISO image '
- @echo '$(BIN)/gpxe.iso to a blank CD-ROM.'
- @echo
- @echo 'These images contain drivers for all supported cards. You'
- @echo 'can build more customised images, and ROM images, using'
- @echo ' make bin/<rom-name>.<output-format>'
- @echo
- @echo '==========================================================='
+ @$(ECHO) '==========================================================='
+ @$(ECHO)
+ @$(ECHO) 'To create a bootable floppy, type'
+ @$(ECHO) ' cat $(BIN)/gpxe.dsk > /dev/fd0'
+ @$(ECHO) 'where /dev/fd0 is your floppy drive. This will erase any'
+ @$(ECHO) 'data already on the disk.'
+ @$(ECHO)
+ @$(ECHO) 'To create a bootable USB key, type'
+ @$(ECHO) ' cat $(BIN)/gpxe.usb > /dev/sdX'
+ @$(ECHO) 'where /dev/sdX is your USB key, and is *not* a real hard'
+ @$(ECHO) 'disk on your system. This will erase any data already on'
+ @$(ECHO) 'the USB key.'
+ @$(ECHO)
+ @$(ECHO) 'To create a bootable CD-ROM, burn the ISO image '
+ @$(ECHO) '$(BIN)/gpxe.iso to a blank CD-ROM.'
+ @$(ECHO)
+ @$(ECHO) 'These images contain drivers for all supported cards. You'
+ @$(ECHO) 'can build more customised images, and ROM images, using'
+ @$(ECHO) ' make bin/<rom-name>.<output-format>'
+ @$(ECHO)
+ @$(ECHO) '==========================================================='
# Locations of utilities
#
+ECHO ?= /bin/echo -e
HOST_CC ?= gcc
CPP ?= gcc -E -Wp,-Wall
RM ?= rm -f
@@ -120,7 +121,7 @@ OBJECT = $(firstword $(subst ., ,$(@F)))
#
OBJ_CFLAGS = $(CFLAGS_$(OBJECT)) -DOBJECT=$(subst -,_,$(OBJECT))
$(BIN)/%.flags :
- @echo $(OBJ_CFLAGS)
+ @$(ECHO) $(OBJ_CFLAGS)
# Rules for specific object types.
#