Skip to content

Commit

Permalink
changes to git info in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hokru committed May 13, 2018
1 parent d06aa30 commit 4366d8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,22 @@ OFPP= $(foreach dir, $(FPPSOURCES), $(addprefix $(SOURCEDIR)/, $(dir)))
OF= $(foreach dir, $(FSOURCES), $(addprefix $(SOURCEDIR)/, $(dir)))
OBJ := $(subst $(SOURCEDIR),$(BUILDDIR),$(OFPP:%.F90=%.o)) $(subst $(SOURCEDIR),$(BUILDDIR),$(OF:%.f90=%.o))

# check git
EXIST=$(shell if [ -d .git ]; then echo "yes"; else echo "no"; fi)
#$(info I AM GIT? $(EXIST))

# build and git info
BUILID:=$(shell date)
ifeq ($(EXIST),yes))
GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
else
#GIT_VERSION := $(shell cat zip.version)
GIT_VERSION := "2.0-dev"
endif
$(info Building: $(GIT_VERSION))



##### INTEL COMPILER ##########
ifeq ($(USE_INTEL),yes)
FC = ifort # -check all -fpe0 -warn -traceback -debug extended
Expand Down
2 changes: 1 addition & 1 deletion tools/place.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
x=$1

HEAD="!**************************************************************************************
! Copyright 2013-2017 Holger Kruse *
! Copyright 2013-2018 Holger Kruse *
! *
! This file is part of Xopt. *
! *
Expand Down

0 comments on commit 4366d8e

Please sign in to comment.