Revision 5458
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/input.Makefile | ||
---|---|---|
30 | 30 |
+_ = $(+:_%=) |
31 | 31 |
addBeforeExt = $(basename $(2))$(1)$(suffix $(2)) |
32 | 32 |
|
33 |
# OS |
|
34 |
os := $(shell uname) |
|
35 |
forOs = $(patsubst %,%-$(filter Linux Darwin,$(os)),$(1)) |
|
36 |
|
|
37 | 33 |
# Terminal |
38 | 34 |
termCols := $(shell tput cols) |
39 | 35 |
esc := '[' |
lib/common.Makefile | ||
---|---|---|
30 | 30 |
cp = $(CP) $< $@ |
31 | 31 |
|
32 | 32 |
# System |
33 |
os := $(shell uname) |
|
34 |
forOs = $(patsubst %,%-$(filter Linux Darwin,$(os)),$(1)) |
|
33 | 35 |
date = $(shell date +"%Y-%m-%d-%H-%M-%S") |
34 | 36 |
|
35 | 37 |
# SVN |
Makefile | ||
---|---|---|
11 | 11 |
root := . |
12 | 12 |
bin := bin |
13 | 13 |
|
14 |
# OS |
|
15 |
os := $(shell uname) |
|
16 |
forOs = $(patsubst %,%-$(filter Linux Darwin,$(os)),$(1)) |
|
17 |
|
|
18 | 14 |
# Terminal |
19 | 15 |
esc := '[' |
20 | 16 |
reset := $(esc)'0m' |
Also available in: Unified diff
Factored OS section out from Makefile, input.Makefile into lib/common.Makefile