![]() ![]() In this context, as it turns out, you likely want neither $(wildcard) or $(subst) and instead want something like this. So while your $(wildcard) executes correctly before the shell script runs (and gives your for loop something to operate over) and thus works correctly (sort of) the $(subst) call also executes before the shell script runs and as such operates on the literal value $$file and not the expansion of the shell variable $file. The shell for loop operates at shell execution time. The $(wildcard) and $(subst) functions are expanded at make parse time (or variable expansion time as appropriate). Your problem is that you are mixing make functions (and make context) with shell functionality/variables (and shell context). I have spent lots of time trying different solutions. So, the command seems to modify files before msgfmt gets them. lang/uk_UK.po:20: Unknown key word «AES» lang/uk_UK.po:19: Unknown key word «Entangle» lang/uk_UK.po:18: Unknown key word «Content» lang/uk_UK.po:17: Unknown key word «Content» lang/uk_UK.po:16: Unknown key word «MIME» lang/uk_UK.po:15: Unknown key word «Language» lang/uk_UK.po:14: Unknown key word «Language» lang/uk_UK.po:13: Unknown key word «Last» lang/uk_UK.po:12: Unknown key word «PO» ![]() lang/uk_UK.po:11: Unknown key word «POT» lang/uk_UK.po:10: Unknown key word «Report» lang/uk_UK.po:9: line terminator inside the line lang/uk_UK.po:2: line terminator inside the line There are 3 files in the folder, and for each of them I get. However, this code does not work moreover, all the *.po files get damaged. In Makefile's "i18n" target, I have written: file in $(wildcard. I need to convert all the *.po translation files in the. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |