990ef3
build system: when building from a git repo, explicitly depend on .git/index.
@@ -1,7 +1,7 @@
|
|
1
1
|
PACKAGE = @package@
|
2
2
|
NICKNAME = @nickname@
|
3
3
|
PROJECT_DIR = @project_dir@
|
4
|
-
|
4
|
+
GIT_REFERENCE_INDEX = @git_reference_index@
|
5
5
|
CUSTOM_INSTALL_HEADERS = @custom_install_headers@
|
6
6
|
AVOID_VERSION = @avoid_version@
|
7
7
|
|
@@ -212,7 +212,7 @@ host.tag: Makefile
|
|
212
212
|
$(PROJECT_DIR)/sysinfo/host/host.sh --compiler="$(CC)" --cflags="$(CFLAGS)"
|
213
213
|
touch host.tag
|
214
214
|
|
215
|
-
version.tag: $(
|
215
|
+
version.tag: $(GIT_REFERENCE_INDEX)
|
216
216
|
$(PROJECT_DIR)/sysinfo/version.sh \
|
217
217
|
-s $(PROJECT_DIR) \
|
218
218
|
-o build/$(PACKAGE)_version.h \
|
@@ -30,7 +30,7 @@ init_vars()
|
|
30
30
|
|
31
31
|
# git
|
32
32
|
if [ -d "$mb_project_dir/.git" ]; then
|
33
|
-
|
33
|
+
mb_git_reference_index="\$(PROJECT_DIR)/.git/index"
|
34
34
|
fi
|
35
35
|
|
36
36
|
# project
|
@@ -355,7 +355,7 @@ config_copy()
|
|
355
355
|
sed -e 's^@package@^'"$mb_package"'^g' \
|
356
356
|
-e 's^@nickname@^'"$mb_nickname"'^g' \
|
357
357
|
-e 's^@project_dir@^'"$mb_project_dir"'^g' \
|
358
|
-
-e 's^@
|
358
|
+
-e 's^@git_reference_index@^'"$mb_git_reference_index"'^g' \
|
359
359
|
-e 's^@custom_install_headers@^'"$mb_custom_install_headers"'^g' \
|
360
360
|
-e 's^@avoid_version@^'"$mb_avoid_version"'^g' \
|
361
361
|
\
|