[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian/rules @variable@ syntax



On 11/1/22 22:59, The Wanderer wrote:
> Can anyone advise me as to at least where I need to look to find out
> about this syntax and how to understand it? Advice about how to actually
> handle this dense and complicated control file (and its input
> control.in) properly, rather than in whatever hackish way I might
> otherwise come up with, would be even more appreciated.

Those are not Debian-specific per se, but firefox-specific, it seems.

debian/rules passes IN_FILES through a `preprocess` function, which
accumulates them in PREPROCESSED_FILES, which are eventually built using
the python script at python/mozbuild/mozbuild/preprocessor.py. This
script handles the parsing (with regex) and substitution.

$ grep -B1 -e preprocessor.py debian/rules

I don't know enough Make to advise you on how to move on with this info,
but good luck!


Reply to: