Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79309272
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
Sun, Aug 25, 18:30
Size
926 B
Mime Type
text/x-makefile
Expires
Tue, Aug 27, 18:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20173471
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