]> git.cworth.org Git - lmno.games/commit
Makefile: Fix downloading of React javascript files
authorCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 17:09:52 +0000 (10:09 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Jun 2020 17:09:52 +0000 (10:09 -0700)
commit6126dc41b242fe413fd212d3de0fba73b23011da
tree0dc54f48f4b0e9fe818761c5dd9f3e9939b6fafb
parenta203a3aca4fb8428bfa47d7f05c3478780d69554
Makefile: Fix downloading of React javascript files

This has not worke since commit b5bcbc45f19ee068478edb73b48bc7194e582da8

There were two things broken in that commit:

  1. It was inserting a "deps/" into the URL for downloading, (which
     doesn't exist---we only have "deps/" in the local filesystem.

  2. It wasn't distinguishing "react-dom@16" from "react@16" in the
     URL, (half of the files we download need one, and half the
     other).

This commit fixes both. The first by using a "substitution reference"
with the $@ variable to remove the "deps/" from its value when
constructing the URL. And the second by splitting the existing rule
into two rules.

Whle here, we also replace the use of the patsubt function in the
SHA512 recipe with the simpler substitution reference exactly as we
are now using it in the line before.
Makefile