GNU make macros

A GNU make rule is installed by default as /usr/share/libcxx-version/libcxx.mk or /usr/local/share/libcxx-version/libcxx.mk, and contains a couple of useful gmake macros. This rule requires GNU make and xsltproc:

include /usr/share/libcxx-version/libcxx.mk

$(call OPTIONS_GEN,cliopts.H,cliopts.xml)

This example creates a rule for cliopts.H with a dependency cliopts.xml. The target gets created by running the optgen.xsl stylesheet.