Hot answers tagged

1

Your ${group_number} will be replaced by the make macro with that name. But the line above it sets it as a shell variable (in a different shell than the one you're using it in; simply doubling the $ will not work). You should define it as a macro -- ie not in a rule, in a non tab indented line. Same thing with tests; each line is run in a different shell, ...


1

The build is missing -lX11; to work around that, run ./configure LIBS=-lX11 && make


1

The GNU Awk manual's section on getline has an almost perfect example: For example, the following program copies all the input files to the output, except for records that say @include filename. Such a record is replaced by the contents of the file filename: { if (NF == 2 && $1 == "@include") { while ((getline line < $2) >...


Only top voted, non community-wiki answers of a minimum length are eligible