]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove one use of $(shell ...)
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Oct 2019 21:28:41 +0000 (17:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Oct 2019 21:28:41 +0000 (17:28 -0400)
Makefile

index be3df5caeda4e8d6f74f0546690238796b56811b..9ebe5de730ba1a1e733c6418b8a9762ef674a531 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,6 @@
 # Version:     $Id$
 #
 
-#
-#      we didn't called ./configure? just define the version.
-#
-RADIUSD_VERSION_STRING := $(shell cat VERSION)
-
 #
 #  The default rule is "all".
 #
@@ -41,6 +36,13 @@ endif
 endif
 endif
 
+#
+#  'configure' was not run?  Get the version number from the file.
+#
+ifeq "$(RADIUS_VERSION_STRING)" ""
+RADIUSD_VERSION_STRING := $(shell cat VERSION)
+endif
+
 MFLAGS += --no-print-directory
 
 # The version of GNU Make is too old, don't use it (.FEATURES variable was