Skip to content

Commit

Permalink
Minimize rebuilds on git version change
Browse files Browse the repository at this point in the history
It's headache when even doing commit leads to almost full rebuild due to
changed current git version without real content change.
  • Loading branch information
nick87720z committed May 23, 2021
1 parent 04c006a commit 0614b9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ AC_INIT([rofi], [1.6.1-dev], [https://github.com/davatorium/rofi/],[],[https://r

AC_CONFIG_SRCDIR([source/rofi.c])
AC_CONFIG_HEADER([config.h])
AH_BOTTOM([#include "gitconfig.h"])

dnl ---------------------------------------------------------------------
dnl Lex & Bison language parser.
Expand Down
10 changes: 6 additions & 4 deletions source/rofi.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
#include <libgwater-xcb.h>

#ifdef USE_NK_GIT_VERSION
#include "nkutils-git-version.h"
#ifdef NK_GIT_VERSION
#define GIT_VERSION NK_GIT_VERSION
#endif
#include "nkutils-git-version.h"
#ifdef NK_GIT_VERSION
#define GIT_VERSION NK_GIT_VERSION
#endif
#else
#include <gitconfig.h>
#endif

#include "resources.h"
Expand Down

0 comments on commit 0614b9f

Please sign in to comment.