Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91589093
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 12, 12:20
Size
926 B
Mime Type
text/x-makefile
Expires
Thu, Nov 14, 12:20 (2 d)
Engine
blob
Format
Raw Data
Handle
22286781
Attached To
rGYACOMO GYACOMO (OBSOLETE: LATEST VERSION ON gitlab.epfl.ch)
Makefile
View Options
#Default and consistent setings for finding libraries and modules
include ../../local/dirs.inc
include ../../local/make.inc
#VERSION=`svn info $(SRCDIR) | grep Revision | awk '{print $$2}'`
VERSION=`git describe --always --dirty`
BRANCH=`git rev-parse --abbrev-ref HEAD`
AUTHOR=`whoami`
DATE=`date`
HOST=`hostname`
all: srcinfo
srcinfo:
@echo 'character(len=40) VERSION' | cat > srcinfo.h
@echo 'character(len=40) BRANCH' | cat >> srcinfo.h
@echo 'character(len=20) AUTHOR'| cat >> srcinfo.h
@echo 'character(len=40) EXECDATE'| cat >> srcinfo.h
@echo 'character(len=40) HOST'| cat >> srcinfo.h
@echo parameter \(VERSION=\'${VERSION}\'\) >> srcinfo.h
@echo parameter \(BRANCH=\'${BRANCH}\'\) >> srcinfo.h
@echo parameter \(AUTHOR=\'${AUTHOR}\'\) >> srcinfo.h
@echo parameter \(EXECDATE=\'${DATE}\'\) >> srcinfo.h
@echo parameter \(HOST =\'${HOST}\'\) >> srcinfo.h
@cp srcinfo.h $(SRCDIR)
clean:
@rm -f srcinfo.h
Event Timeline
Log In to Comment