build: revamp and avoid unnecessary rebuilds
commitebd6816e393ac9926f16f3a73034fc378492d71e
authorEric Wong <bofh@yhbt.net>
Sun, 26 Jul 2020 01:57:59 +0000 (26 01:57 +0000)
committerEric Wong <bofh@yhbt.net>
Thu, 30 Jul 2020 02:58:32 +0000 (30 02:58 +0000)
treebccf765b3ce3b1e7f66c9e7f04096648824fad65
parentb51542b6e1c16457748c553f49d4f847556c6137
build: revamp and avoid unnecessary rebuilds

We can limit the amount of Ruby-version-specific code to
just the stuff in ext/* and bin/*, reducing I/O traffic
and FS + page cache footprint.

Furthermore, rely on GNU make behavior to copy all the necessary
files so we don't trigger unnecessary extconf.rb invocations
just by touching a .rb file in lib.
GNUmakefile
t/GNUmakefile