Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f2f169

Browse files
committed
Fix GNU make detection.
(The test 'make --version' with FreeBSD make (and potentially others)would just reinvoke make on the same Makefile, resulting in an infiniteloop.)
1 parentdb631de commit6f2f169

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
allcheckinstallinstalldirsinstallcheckuninstalldepdependcleandistcleanmaintainer-clean:
1515
@if! [-f GNUmakefile ];then\
16-
echo"You need to run the\`configure' program first. See the file";\
17-
echo"\`INSTALL' for installation instructions.";\
16+
echo"You need to run the'configure' program first. See the file";\
17+
echo"'INSTALL' for installation instructions.";\
1818
false;\
1919
fi
2020
@IFS=':';\
2121
fordirin$$PATH;do \
2222
forprogin gmake gnumake make;do \
23-
if [-f$$dir/$$prog ]&& ($$dir/$$prog --version2>/dev/null| grep GNU>/dev/null2>&1 );then \
23+
if [-f$$dir/$$prog ]&& ($$dir/$$prog -f /dev/null --version2>/dev/null| grep GNU>/dev/null2>&1 );then \
2424
GMAKE=$$dir/$$prog;\
2525
break 2;\
2626
fi;\

‎src/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
# GNUmakefile won't exist yet, so we catch that case as well.
1212

1313

14-
allinstallcleandepdependdistcleanmaintainer-clean:
14+
allcheckinstallinstalldirsinstallcheckuninstalldepdependcleandistcleanmaintainer-clean:
1515
@if! [-f GNUmakefile ];then\
16-
echo"You need to run the\`configure' program first. See the file";\
17-
echo"\`INSTALL' for installation instructions.";\
16+
echo"You need to run the'configure' program first. See the file";\
17+
echo"'INSTALL' for installation instructions.";\
1818
false;\
1919
fi
2020
@IFS=':';\
2121
fordirin$$PATH;do \
2222
forprogin gmake gnumake make;do \
23-
if [-f$$dir/$$prog ]&& ($$dir/$$prog --version| grep GNU>/dev/null2>&1 );then \
23+
if [-f$$dir/$$prog ]&& ($$dir/$$prog -f /dev/null --version2>/dev/null| grep GNU>/dev/null2>&1 );then \
2424
GMAKE=$$dir/$$prog;\
2525
break 2;\
2626
fi;\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp