]> git.cameronkatri.com Git - cgit.git/commit
cgit.mk: don't rebuild everything if CGIT_VERSION changes
authorJohn Keeping <john@keeping.me.uk>
Wed, 6 Mar 2013 21:22:08 +0000 (21:22 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Mar 2013 20:08:32 +0000 (21:08 +0100)
commitd6768a67093166810621d2521f10fd016bd75721
tree8eb04db917f11a34d3910376fb9494bb0563c7fd
parent1a6feaf5fafdaec4a1adb1c0d54b95106122ede5
cgit.mk: don't rebuild everything if CGIT_VERSION changes

If CGIT_VERSION is in CGIT_CFLAGS then a change in version (for example
because you have committed your changes) causes all of the CGit objects
to be rebuilt.  Avoid this by using EXTRA_CPPFLAGS to add the version
for only those files that are affected and make them depend on VERSION.

Signed-off-by: John Keeping <john@keeping.me.uk>
cgit.mk