File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,11 @@ info:
456456 $(info pkgconfigdir = $(value pkgconfigdir) )
457457 $(info )
458458 $(info -----------------------------------------)
459+ $(info )
460+ $(info Git:)
461+ $(info describe = $(GIT_DESCRIBE ) )
462+ $(info )
463+ $(info -----------------------------------------)
459464 @true
460465
461466info-backends :
@@ -850,10 +855,11 @@ $(OBJDIR)/ceed.pc : pkgconfig-prefix = $(prefix)
850855 -e " s:%prefix%:$( pkgconfig-prefix) :" \
851856 -e " s:%libs_private%:$( pkgconfig-libs-private) :" $< > $@
852857
853- GIT_DESCRIBE = $(shell git describe --dirty || printf "unknown\n")
858+ GIT_DESCRIBE = $(shell git describe --always -- dirty 2>/dev/null || printf "unknown\n")
854859
855860$(OBJDIR ) /interface/ceed-config.c : Makefile
856861 @$(file >$@ ,#include <ceed-impl.h>) \
862+ $(file >>$@ ,) \
857863 $(file >>$@ ,int CeedGetGitVersion(const char ** git_version) {) \
858864 $(file >>$@, *git_version = "$(GIT_DESCRIBE)";) \
859865 $(file >>$@, return 0;) \
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ int main(int argc, char **argv) {
88 const char * git_version , * build_config ;
99 CeedGetGitVersion (& git_version );
1010 CeedGetBuildConfiguration (& build_config );
11- // printf("Git: %s\n", git_version);
12- // puts(build_config);
11+ //printf("Git: %s\n", git_version);
12+ //puts(build_config);
1313 return 0 ;
1414}
You can’t perform that action at this time.
0 commit comments