I realised that we already have a global cgit_version so that ui-patch.c doesn't need to reference the #define'd CGIT_VERSION, meaning that we can reduce the set of files using that definition to cgit.c. Patch 2 (new) changes this.
Patch 3 (previously patch 2) is modified to remove ui-patch.c from the list of files that depend on CGIT_VERSION. Patch 4 is a new unrelated change to fix the build on systems with unusual shells in "/bin/sh". John Keeping (4): Makefile: re-use Git's Makefile where possible ui-patch: use cgit_version not CGIT_VERSION cgit.mk: don't rebuild everything if CGIT_VERSION changes cgit.mk: Use SHELL_PATH_SQ to run gen-version.sh .gitignore | 1 + Makefile | 124 +++---------------------------------------------------------- cgit.mk | 81 ++++++++++++++++++++++++++++++++++++++++ ui-patch.c | 2 +- 4 files changed, 88 insertions(+), 120 deletions(-) create mode 100644 cgit.mk -- 1.8.2.rc2.4.g7799588 _______________________________________________ cgit mailing list cgit@hjemli.net http://hjemli.net/mailman/listinfo/cgit