]> git.draconx.ca Git - dxcommon.git/commit
fix-gnulib: Fix order-only hack with HP-UX make.
authorNick Bowler <nbowler@draconx.ca>
Sun, 7 Mar 2021 05:57:08 +0000 (00:57 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 10 Mar 2021 01:42:54 +0000 (20:42 -0500)
commite218d4445fa5a2015163cf50d847980ff3240b36
tree0c4a3591f5e8aba4de5db6d616341493292512ea
parent1c735777327e973ad2cb5bf53a3d81d793e46411
fix-gnulib: Fix order-only hack with HP-UX make.

HP-UX make gets confused by the space in $(findstring ...,$(...))
syntax: instead of expanding to the empty string as desired, it
mismatches the parentheses and we are left with a single ).  E.g.:

  % cat >Makefile <<'EOF'
  all:
@echo '$(a $(b))'
EOF
  % make
  )

Since $(x) and ${x} are equivalent in Make, a neat solution is to
just replace one set of parentheses with braces; now there are no
nested parentheses to mismatch in the first place.
scripts/fix-gnulib.pl