I'm improving a Makefile for a project which uses [/usr/local]/var/lib and [/usr/local]/tmp. I see there's no standard in the GNU coding standards for directory variables.

I used the following:

tmpdir := $(prefix)/tmp
libstatedir := $(localstatedir)/lib

I developed the name $libstatedir for symmetry with $runstatedir, which is also a child of $localstatedir, with the first part of the name as the name of the child dir.

Would you mind adding those to your directory variables?



Alejandro Colomar

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to