diff options
author | midipix <writeonce@midipix.org> | 2016-05-19 02:32:29 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-19 02:36:31 -0400 |
commit | 2c61d1c22c9ca9f09922a2bac06c45fdd5d57fc2 (patch) | |
tree | 57cec4365f7665de5c987612f1d2800ac9a9ceee | |
parent | 8d8b0119d6051ad4c54e37c9b928d52adcb700d6 (diff) | |
download | dalist-2c61d1c22c9ca9f09922a2bac06c45fdd5d57fc2.tar.bz2 dalist-2c61d1c22c9ca9f09922a2bac06c45fdd5d57fc2.tar.xz |
build system: when building from a git repo, explicitly depend on .git/index.
-rw-r--r-- | Makefile.in | 4 | ||||
-rwxr-xr-x | configure | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index 962fab4..d2479b0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,7 +1,7 @@ PACKAGE = @package@ NICKNAME = @nickname@ PROJECT_DIR = @project_dir@ -GIT_REFERENCE_DIR = @git_reference_dir@ +GIT_REFERENCE_INDEX = @git_reference_index@ CUSTOM_INSTALL_HEADERS = @custom_install_headers@ AVOID_VERSION = @avoid_version@ @@ -212,7 +212,7 @@ host.tag: Makefile $(PROJECT_DIR)/sysinfo/host/host.sh --compiler="$(CC)" --cflags="$(CFLAGS)" touch host.tag -version.tag: $(GIT_REFERENCE_DIR) +version.tag: $(GIT_REFERENCE_INDEX) $(PROJECT_DIR)/sysinfo/version.sh \ -s $(PROJECT_DIR) \ -o build/$(PACKAGE)_version.h \ @@ -30,7 +30,7 @@ init_vars() # git if [ -d "$mb_project_dir/.git" ]; then - mb_git_reference_dir="\$(PROJECT_DIR)/.git" + mb_git_reference_index="\$(PROJECT_DIR)/.git/index" fi # project @@ -355,7 +355,7 @@ config_copy() sed -e 's^@package@^'"$mb_package"'^g' \ -e 's^@nickname@^'"$mb_nickname"'^g' \ -e 's^@project_dir@^'"$mb_project_dir"'^g' \ - -e 's^@git_reference_dir@^'"$mb_git_reference_dir"'^g' \ + -e 's^@git_reference_index@^'"$mb_git_reference_index"'^g' \ -e 's^@custom_install_headers@^'"$mb_custom_install_headers"'^g' \ -e 's^@avoid_version@^'"$mb_avoid_version"'^g' \ \ |