Project

General

Profile

« Previous | Next » 

Revision 3763

lib/common.Makefile: Added vars for chars not allowed in make targets. Added functions/vars to replace "_" with " ".

View differences:

lib/common.Makefile
7 7
##### Vars/functions
8 8

  
9 9
# Make
10
null :=
11
space := $(null) $(null)
10 12
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}")
11 13
topDir = $(word 1,$(pathParts))
12 14
subPath = $(word 2,$(pathParts))
......
14 16
--makefile=../input.Makefile
15 17
# input.Makefile path is relative to subdir
16 18

  
19
# Formatting
20
_2Space = $(subst _,$(space),$(1))
21
*2Space = $(call _2Space,$*)
22

  
17 23
# SVN
18 24
addDir = $(if $(wildcard $(1)/),svn add --depth=empty $(1),svn mkdir $(1))
19 25

  

Also available in: Unified diff