ruby/enc
Yuta Saito 32ad8df9d1 enc/depend: fix out-of-src build with --with-static-linked-ext
When out-of-src build, at the beginning of a build, `make -f enc.mk
srcs` generates trans C sources under build dir.

On the other hand, enc/trans/*.o were built from trans C sources
generated under srcdir due to the following auto-generated rules from
enc/depend.

```
encsrcdir = ../src/enc
...
enc/trans/big5.$(OBJEXT): $(encsrcdir)/trans/big5.c
```

Therefore, trans C sources are generated twice under srcdir and build
dir during a build.

Ideally, trans C sources have always been built before compilation of
enc/trans/*.o because the source generation is prereq, so making
enc/trans/*.o doesn't trigger trans C source generation and shouldn't
require MINIRUBY as a make arg for enc.mk. However, the second trans C
source gen is unintentionally triggered by enc/trans/*.o, so `make -f
enc.mk libencs` requires MINIRUBY for now.

When no `--with-static-linked-ext`, `make -f enc.mk libencs` is
triggered from common.mk with MINIRUBY, so there is no problem.
But when `--with-static-linked-ext`, libencs should be statically-linked
to ruby, so `make -f enc.mk libencs` is triggered from exts.mk, and
exts.mk invokes it without MINIRUBY.

Therefore, when out-of-src build and with `--with-static-linked-ext`,
the second trans C source gen fails due to missing MINIRUBY.
This issue is deterministically reproducible without -j because
common.mk's `main` rule also has libencs prerequisite.

This patch supresses the second trans C source gen.
2022-03-02 09:40:58 +09:00
..
jis
trans [Feature #18249] Include ruby.h in extensions to have ABI version 2022-02-22 09:55:21 -05:00
unicode Remove no longer needed include files (Unicode Version 12.1.0) 2021-07-09 16:22:38 +09:00
ascii.c Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
big5.c
cesu_8.c remove UNREACHABLE 2019-06-24 16:01:46 +09:00
cp949.c Use https instead of http 2020-07-28 19:51:54 +09:00
depend enc/depend: fix out-of-src build with --with-static-linked-ext 2022-03-02 09:40:58 +09:00
ebcdic.h
emacs_mule.c
encdb.c decouple internal.h headers 2019-12-26 20:45:12 +09:00
encinit.c.erb [Feature #18249] Include ruby.h in extensions to have ABI version 2022-02-22 09:55:21 -05:00
euc_jp.c Use https instead of http 2020-07-28 19:51:54 +09:00
euc_kr.c
euc_tw.c
gb2312.c Init function is need to link statically 2019-08-10 01:41:50 +09:00
gb18030.c
gbk.c
iso_2022_jp.h
iso_8859.h
iso_8859_1.c
iso_8859_2.c
iso_8859_3.c
iso_8859_4.c
iso_8859_5.c
iso_8859_6.c Use https instead of http 2020-07-28 19:51:54 +09:00
iso_8859_7.c
iso_8859_8.c Use https instead of http 2020-07-28 19:51:54 +09:00
iso_8859_9.c
iso_8859_10.c
iso_8859_11.c Use https instead of http 2020-07-28 19:51:54 +09:00
iso_8859_13.c
iso_8859_14.c
iso_8859_15.c
iso_8859_16.c
koi8_r.c
koi8_u.c
make_encmake.rb
Makefile.in transcode-tblgen.rb: make silent a little when just -v 2020-12-29 17:45:19 +09:00
mktable.c
shift_jis.c Use https instead of http 2020-07-28 19:51:54 +09:00
shift_jis.h
unicode.c Suppress warnings by gcc 10.1.0-RC-20200430 2020-05-04 12:28:24 +09:00
us_ascii.c
utf_7.h
utf_8.c
utf_16_32.h
utf_16be.c
utf_16le.c
utf_32be.c
utf_32le.c
windows_31j.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1250.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1251.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1252.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1253.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1254.c Use https instead of http 2020-07-28 19:51:54 +09:00
windows_1257.c Use https instead of http 2020-07-28 19:51:54 +09:00
x_emoji.h enc/x_emoji.h: fixed dead-links [ci skip] 2019-12-24 10:33:32 +09:00