diff --git a/Makefile b/Makefile index 36b7ae1020..985234c1a3 100644 --- a/Makefile +++ b/Makefile @@ -245,7 +245,7 @@ else endif ifneq ($(AWK),) ifneq ($(wildcard .version),) - ASTERISKVERSIONNUM:=$(shell $(AWK) -F. '{printf "%01d%02d%02d", $$1, $$2, $$3}' .version) + ASTERISKVERSIONNUM:=$(shell $(SED) -e 's/^certified\///' -e 's/-cert/./' .version | $(AWK) -F. '{printf "%01d%02d%02d", $$1, $$2, $$3}') endif endif