[PATCH v3 1/4] Makefile: re-use Git's Makefile where possible

Jason A. Donenfeld Jason at zx2c4.com
Wed Mar 20 20:33:54 CET 2013


On Wed, Mar 6, 2013 at 10:22 PM, John Keeping <john at keeping.me.uk> wrote:
> +$(CGIT_PREFIX)CGIT-CFLAGS: FORCE
> +       @FLAGS='$(subst ','\'',$(CGIT_CFLAGS))'; \
> +           if test x"$$FLAGS" != x"`cat ../CGIT-CFLAGS 2>/dev/null`" ; then \
> +               echo 1>&2 "    * new CGit build flags"; \
> +               echo "$$FLAGS" >$(CGIT_PREFIX)CGIT-CFLAGS; \
> +            fi
> +

I understand the desire to track cflags changes and only rebuild
certain parts, etc, but the notion of creating an extra file for this
isn't too nice. I suppose this is the only way to do it though.




More information about the CGit mailing list