fix expansion of variable lib.version in cflags during compilation
This commit is contained in:
parent
d2fa193cac
commit
9015ba7b9f
1 changed files with 15 additions and 15 deletions
|
|
@ -314,13 +314,27 @@ Makefile.pdlibbuilder = true
|
|||
|
||||
|
||||
################################################################################
|
||||
### variables: files ###########################################################
|
||||
### variables: library name and version ########################################
|
||||
################################################################################
|
||||
|
||||
|
||||
# strip possibles spaces from lib.name, they mess up calculated file names
|
||||
lib.name := $(strip $(lib.name))
|
||||
|
||||
# if meta file exists, check library version
|
||||
metafile := $(wildcard $(lib.name)-meta.pd)
|
||||
|
||||
ifdef metafile
|
||||
lib.version := $(shell sed -n \
|
||||
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' \
|
||||
$(metafile))
|
||||
endif
|
||||
|
||||
|
||||
################################################################################
|
||||
### variables: files ###########################################################
|
||||
################################################################################
|
||||
|
||||
|
||||
#=== sources ===================================================================
|
||||
|
||||
|
|
@ -652,20 +666,6 @@ else
|
|||
endif
|
||||
|
||||
|
||||
#=== library version ===========================================================
|
||||
|
||||
|
||||
# if meta file exists, check library version
|
||||
|
||||
metafile := $(wildcard $(lib.name)-meta.pd)
|
||||
|
||||
ifdef metafile
|
||||
lib.version := $(shell sed -n \
|
||||
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' \
|
||||
$(metafile))
|
||||
endif
|
||||
|
||||
|
||||
################################################################################
|
||||
### rules: special targets #####################################################
|
||||
################################################################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue