From: Zdenek Kabelac Date: Tue, 11 May 2010 08:43:18 +0000 (+0000) Subject: Skip unneeded 'cat' command execution. X-Git-Tag: v2_02_65~28 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=627d5adc63bd5ee4ea91346fbb4b438b93d911bf;p=lvm2.git Skip unneeded 'cat' command execution. --- diff --git a/make.tmpl.in b/make.tmpl.in index 69fab00f1..6d9f6818d 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -142,14 +142,11 @@ STRIP= LVM_VERSION := $(shell cat $(top_srcdir)/VERSION) -LIB_VERSION_LVM := $(shell cat $(top_srcdir)/VERSION | \ - $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}') +LIB_VERSION_LVM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)/VERSION) -LIB_VERSION_DM := $(shell cat $(top_srcdir)/VERSION_DM | \ - $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}') +LIB_VERSION_DM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)/VERSION_DM) -LIB_VERSION_APP := $(shell cat $(top_srcdir)/VERSION | \ - $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}') +LIB_VERSION_APP := $(shell $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}' $(top_srcdir)/VERSION) INCLUDES += -I. -I$(top_builddir)/include