소스 검색

Avoid Makefile syntax that requires make >= 3.81.

tags/v0.9.3
Michael Brown 16 년 전
부모
커밋
cf895a8c7c
1개의 변경된 파일14개의 추가작업 그리고 8개의 파일을 삭제
  1. 14
    8
      src/Makefile

+ 14
- 8
src/Makefile 파일 보기

@@ -9,16 +9,22 @@ ROMS		:=
9 9
 MEDIA		:=
10 10
 NON_AUTO_MEDIA	:=
11 11
 
12
-# Find a usable "echo -e".
12
+# Find a usable "echo -e" substitute.
13 13
 #
14
-ifeq ($(shell echo '\0101'),A)
14
+ifeq ($(shell echo '\101'),A)
15
+ECHO		?= echo
16
+endif
17
+ifeq ($(shell echo -e '\101'),A)
18
+ECHO		?= echo -e
19
+endif
20
+ifeq ($(shell /bin/echo '\101'),A)
21
+ECHO		?= /bin/echo
22
+endif
23
+ifeq ($(shell /bin/echo -e '\101'),A)
24
+ECHO		?= /bin/echo -e
25
+endif
26
+ifndef ECHO
15 27
 ECHO		:= echo
16
-else ifeq ($(shell echo -e '\0101'),A)
17
-ECHO		:= echo -e
18
-else ifeq ($(shell /bin/echo '\0101'),A)
19
-ECHO		:= /bin/echo
20
-else ifeq ($(shell /bin/echo -e '\0101'),A)
21
-ECHO		:= /bin/echo -e
22 28
 endif
23 29
 
24 30
 # Grab the central Config file.

Loading…
취소
저장