Project

General

Profile

« Previous | Next » 

Revision 5451

Factored $(date) out from Makefile, input.Makefile into lib/common.Makefile

View differences:

inputs/input.Makefile
37 37
# Formatting
38 38
SED = sed -$(if $(filter Darwin,$(os)),E,r)
39 39

  
40
# System
41
date = $(shell date +"%Y-%m-%d-%H-%M-%S")
42

  
43 40
# Terminal
44 41
termCols := $(shell tput cols)
45 42
esc := '['
lib/common.Makefile
28 28
CP := cp -p
29 29
cp = $(CP) $< $@
30 30

  
31
# System
32
date = $(shell date +"%Y-%m-%d-%H-%M-%S")
33

  
31 34
# SVN
32 35
addFile = $(if $(wildcard $(1)),,touch $(1) && )svn add $(1)
33 36
addDir = $(if $(wildcard $(1)/),svn add --depth=empty $(1),svn mkdir $(1))
Makefile
14 14
os := $(shell uname)
15 15
forOs = $(patsubst %,%-$(filter Linux Darwin,$(os)),$(1))
16 16

  
17
# System
18
date = $(shell date +"%Y-%m-%d-%H-%M-%S")
19

  
20 17
# Terminal
21 18
esc := '['
22 19
reset := $(esc)'0m'

Also available in: Unified diff