Since we originally worked on the Makefile for this parser, some others have added one to their repo. The biggest pain point was the inability to easily diff across parsers. This PR ports some great stuff I found from the swift and json parsers back here. This stuff can now be just copied over to other parser repos with no modifications.
It is generic to the parser name (but can be customized, which is very handy for debugging and subtle naming differences)
It addresses a compatibility issue with non-macOS linkers
It treats both the generated h and pc files as build artifacts
-Werror has proven to be very problematic for certain parser/build environments
My intention is to, after review, make similar PRs for other parsers that have a less-generic Make setup.
Since we originally worked on the Makefile for this parser, some others have added one to their repo. The biggest pain point was the inability to easily diff across parsers. This PR ports some great stuff I found from the swift and json parsers back here. This stuff can now be just copied over to other parser repos with no modifications.
-Werror
has proven to be very problematic for certain parser/build environmentsMy intention is to, after review, make similar PRs for other parsers that have a less-generic Make setup.