]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sort out indenting in main Makefile
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 21 Jun 2023 10:59:42 +0000 (11:59 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Wed, 1 May 2024 22:56:44 +0000 (23:56 +0100)
Makefile

index f41ad8ca1354a6a8e4c0132d19840b0588478217..f9904bfc95666dafb6fe394d57fcba8be6f67fa9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -129,56 +129,57 @@ build/autoconf.mk: src/include/autoconf.h
        @mkdir -p build
        ${Q}grep '^#define' $^ | sed 's/#define /AC_/;s/ / := /' > $@
 
-      -include build/autoconf.mk
+  -include build/autoconf.mk
+
+  #
+  #  Autoload the various libraries needed for building.
+  #
+  #  If the build is targeting these explicitly, then we are OK if their
+  #  features don't exist.  If we're building everything else, then
+  #  build these first, and then load the libraries.
+  #
+  #  Ensure that these libraries are built ONLY when doing a full build,
+  #  AND that they are built and loaded before using the rest of the
+  #  boilermake framework, UNLESS we're doing "make clean", in which case
+  #  don't include the magic libraries.
+  #
+  ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
+    ifeq "$(findstring libfreeradius-make,$(MAKECMDGOALS))" ""
 
       #
-      #  Autoload the various libraries needed for building.
-      #
-      #  If the build is targeting these explicitly, then we are OK if their
-      #  features don't exist.  If we're building everything else, then
-      #  build these first, and then load the libraries.
-      #
-      #  Ensure that these libraries are built ONLY when doing a full build,
-      #  AND that they are built and loaded before using the rest of the
-      #  boilermake framework, UNLESS we're doing "make clean", in which case
-      #  don't include the magic libraries.
+      #  Avoid calling shell if we don't need to build support libraries
       #
-      ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
-        ifeq "$(findstring libfreeradius-make,$(MAKECMDGOALS))" ""
-
-          #
-          #  Avoid calling shell if we don't need to build support libraries
-          #
-          ifeq "$(wildcard build/lib/.libs/libfreeradius-make-dlopen.${BUILD_LIB_EXT})" ""
-            BUILD_MAKE_LIBS=yes
-          endif
-          ifeq "$(wildcard build/lib/.libs/libfreeradius-make-version.${BUILD_LIB_EXT})" ""
-            BUILD_MAKE_LIBS=yes
-          endif
-          ifeq "$(wildcard build/lib/.libs/libfreeradius-make-util.${BUILD_LIB_EXT})" ""
-            BUILD_MAKE_LIBS=yes
-          endif
-
-          ifdef BUILD_MAKE_LIBS
-            define n
-          endef
-          $(info $(subst CC,$nCC,$(shell $(MAKE) VERBOSE=$(VERBOSE) libfreeradius-make-dlopen.${BUILD_LIB_EXT} libfreeradius-make-version.${BUILD_LIB_EXT} libfreeradius-make-util.${BUILD_LIB_EXT})))
-        endif
-
-        load build/lib/.libs/libfreeradius-make-dlopen.${BUILD_LIB_EXT}(dlopen_gmk_setup)
-        load build/lib/.libs/libfreeradius-make-version.${BUILD_LIB_EXT}(version_gmk_setup)
-        load build/lib/.libs/libfreeradius-make-util.${BUILD_LIB_EXT}(util_gmk_setup)
-      else
-        BUILD_DIR:=${top_srcdir}/build
-        top_builddir:=${top_srcdir}/scripts/build
+      ifeq "$(wildcard build/lib/.libs/libfreeradius-make-dlopen.${BUILD_LIB_EXT})" ""
+        BUILD_MAKE_LIBS=yes
+      endif
+      ifeq "$(wildcard build/lib/.libs/libfreeradius-make-version.${BUILD_LIB_EXT})" ""
+        BUILD_MAKE_LIBS=yes
+      endif
+      ifeq "$(wildcard build/lib/.libs/libfreeradius-make-util.${BUILD_LIB_EXT})" ""
+        BUILD_MAKE_LIBS=yes
+      endif
+
+      ifdef BUILD_MAKE_LIBS
+        define n
+
+
+        endef
+        $(info $(subst CC,$nCC,$(shell $(MAKE) VERBOSE=$(VERBOSE) libfreeradius-make-dlopen.${BUILD_LIB_EXT} libfreeradius-make-version.${BUILD_LIB_EXT} libfreeradius-make-util.${BUILD_LIB_EXT})))
       endif
-    endif
 
-    #
-    #  Load the huge boilermake framework.
-    #
-    include scripts/boiler.mk
+      load build/lib/.libs/libfreeradius-make-dlopen.${BUILD_LIB_EXT}(dlopen_gmk_setup)
+      load build/lib/.libs/libfreeradius-make-version.${BUILD_LIB_EXT}(version_gmk_setup)
+      load build/lib/.libs/libfreeradius-make-util.${BUILD_LIB_EXT}(util_gmk_setup)
+    else
+      BUILD_DIR:=${top_srcdir}/build
+      top_builddir:=${top_srcdir}/scripts/build
+    endif
   endif
+
+  #
+  #  Load the huge boilermake framework.
+  #
+  include scripts/boiler.mk
 endif
 
 #