~bdrung/+junk/startup-time

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Benjamin Drung
  • Date: 2013-12-25 13:26:45 UTC
  • Revision ID: bdrung@ubuntu.com-20131225132645-5x53my8q726ptjat
Evaluate versions on the fly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
Pascal_COMPILER := fpc
23
23
Scala_COMPILER := scalac
24
24
 
25
 
Bash_VERSION := $(shell bash --version | head -n 1 | cut -d " " -f 4 | sed 's/-release$$//')
26
 
C_VERSION := $(shell $(C_COMPILER) --version | head -n 1 | cut -d " " -f 4)
27
 
C++_VERSION := $(shell $(C++_COMPILER) --version | head -n 1 | cut -d " " -f 4)
28
 
Csharp_VERSION := $(shell $(Csharp_COMPILER) --version | head -n 1 | cut -d " " -f 5)
29
 
CShell_VERSION := $(shell dpkg-query --showformat='$${Version}' --show csh | sed 's/-.*$$//')
30
 
D_VERSION := $(shell $(D_COMPILER) --version | head -n 1 | cut -d " " -f 4)
31
 
Go_VERSION := $(shell $(Go_COMPILER) --version | head -n 1 | cut -d " " -f 4)
32
 
Haskell_VERSION := $(shell $(Haskell_COMPILER) --version | head -n 1 | cut -d " " -f 8)
33
 
Lua_VERSION := $(shell lua -v 2>&1 | head -n 1 | cut -d " " -f 2)
34
 
Java_VERSION := $(shell $(Java_COMPILER) -version 2>&1 | head -n 1 | cut -d " " -f 2)
35
 
Pascal_VERSION := $(shell $(Pascal_COMPILER) -h | head -n 1 | cut -d " " -f 5)
36
 
Perl_VERSION := $(shell perl --version | grep '.' | head -n 1 | sed 's/.*(v\(.*\)).*/\1/')
37
 
PHP_VERSION := $(shell php --version | head -n 1 | cut -d " " -f 2)
38
 
Python_VERSION := $(shell python --version 2>&1 | head -n 1 | cut -d " " -f 2)
39
 
Python3_VERSION := $(shell python3 --version 2>&1 | head -n 1 | cut -d " " -f 2)
40
 
Ruby_VERSION := $(shell ruby --version | head -n 1 | cut -d " " -f 2)
41
 
Scala_VERSION := $(shell $(Scala_COMPILER) -version 2>&1 | head -n 1 | cut -d " " -f 4)
42
 
Shell_VERSION := $(shell printf "(%s %s)" $(shell readlink /bin/sh) $(shell dpkg-query --showformat='$${Version}' --show $(shell readlink /bin/sh) | sed 's/-.*$$//'))
43
 
ZShell_VERSION := $(shell zsh --version | head -n 1 | cut -d " " -f 2)
 
25
Bash_VERSION = $(shell bash --version | head -n 1 | cut -d " " -f 4 | sed 's/-release$$//')
 
26
C_VERSION = $(shell $(C_COMPILER) --version | head -n 1 | cut -d " " -f 4)
 
27
C++_VERSION = $(shell $(C++_COMPILER) --version | head -n 1 | cut -d " " -f 4)
 
28
Csharp_VERSION = $(shell $(Csharp_COMPILER) --version | head -n 1 | cut -d " " -f 5)
 
29
CShell_VERSION = $(shell dpkg-query --showformat='$${Version}' --show csh | sed 's/-.*$$//')
 
30
D_VERSION = $(shell $(D_COMPILER) --version | head -n 1 | cut -d " " -f 4)
 
31
Go_VERSION = $(shell $(Go_COMPILER) --version | head -n 1 | cut -d " " -f 4)
 
32
Haskell_VERSION = $(shell $(Haskell_COMPILER) --version | head -n 1 | cut -d " " -f 8)
 
33
Lua_VERSION = $(shell lua -v 2>&1 | head -n 1 | cut -d " " -f 2)
 
34
Java_VERSION = $(shell $(Java_COMPILER) -version 2>&1 | head -n 1 | cut -d " " -f 2)
 
35
Pascal_VERSION = $(shell $(Pascal_COMPILER) -h | head -n 1 | cut -d " " -f 5)
 
36
Perl_VERSION = $(shell perl --version | grep '.' | head -n 1 | sed 's/.*(v\(.*\)).*/\1/')
 
37
PHP_VERSION = $(shell php --version | head -n 1 | cut -d " " -f 2)
 
38
Python_VERSION = $(shell python --version 2>&1 | head -n 1 | cut -d " " -f 2)
 
39
Python3_VERSION = $(shell python3 --version 2>&1 | head -n 1 | cut -d " " -f 2)
 
40
Ruby_VERSION = $(shell ruby --version | head -n 1 | cut -d " " -f 2)
 
41
Scala_VERSION = $(shell $(Scala_COMPILER) -version 2>&1 | head -n 1 | cut -d " " -f 4)
 
42
Shell_VERSION = $(shell printf "(%s %s)" $(shell readlink /bin/sh) $(shell dpkg-query --showformat='$${Version}' --show $(shell readlink /bin/sh) | sed 's/-.*$$//'))
 
43
ZShell_VERSION = $(shell zsh --version | head -n 1 | cut -d " " -f 2)
44
44
 
45
45
TIME := time -f "%e"
46
46
RUN := taskset -c 0 ./run 1000