Add a developer target 'build_generated' to rebuild mandatory headers
authorRichard Levitte <levitte@openssl.org>
Tue, 14 Jun 2016 19:39:13 +0000 (21:39 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 14 Jun 2016 20:11:38 +0000 (22:11 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl

index 66eaead..0c0534c 100644 (file)
@@ -223,20 +223,22 @@ NODEBUG=@
 
 # The main targets ###################################################
 
-all : $(GENERATED_MANDATORY), -
+all : build_generated, -
       build_libs_nodep, build_engines_nodep, build_apps_nodep, -
       depend
 
-build_libs : $(GENERATED_MANDATORY), build_libs_nodep, depend
+build_libs : build_generated, build_libs_nodep, depend
 build_libs_nodep : $(LIBS)
-build_engines : $(GENERATED_MANDATORY), build_engines_nodep, depend
+build_engines : build_generated, build_engines_nodep, depend
 build_engines_nodep : $(ENGINES)
-build_apps : $(GENERATED_MANDATORY), build_apps_nodep, depend
+build_apps : build_generated, build_apps_nodep, depend
 build_apps_nodep : $(PROGRAMS), $(SCRIPTS)
-build_tests : $(GENERATED_MANDATORY), build_tests_nodep, depend
+build_tests : build_generated, build_tests_nodep, depend
 build_tests_nodep : $(TESTPROGS)
 
-test tests : $(GENERATED_MANDATORY), -
+build_generated : $(GENERATED_MANDATORY)
+
+test tests : build_generated, -
              build_apps_nodep, build_engines_nodep, build_tests_nodep, -
              depend
         @ ! {- output_off() if $disabled{tests}; "" -}
index 2e5dd68..04964dc 100644 (file)
@@ -210,21 +210,23 @@ PROCESSOR= {- $config{processor} -}
 
 # The main targets ###################################################
 
-all: $(GENERATED_MANDATORY) \
+all: build_generated \
      build_libs_nodep build_engines_nodep build_apps_nodep \
      depend link-utils
 
-build_libs: $(GENERATED_MANDATORY) build_libs_nodep depend
+build_libs: build_generated build_libs_nodep depend
 build_libs_nodep: libcrypto.pc libssl.pc openssl.pc
-build_engines: $(GENERATED_MANDATORY) build_engines_nodep depend
+build_engines: build_generated build_engines_nodep depend
 build_engines_nodep: $(ENGINES)
-build_apps: $(GENERATED_MANDATORY) build_apps_nodep depend
+build_apps: build_generated build_apps_nodep depend
 build_apps_nodep: $(PROGRAMS) $(SCRIPTS)
-build_tests: $(GENERATED_MANDATORY) build_tests_nodep depend
+build_tests: build_generated build_tests_nodep depend
 build_tests_nodep: $(TESTPROGS)
 
+build_generated: $(GENERATED_MANDATORY)
+
 test: tests
-tests: $(GENERATED_MANDATORY) \
+tests: build_generated \
        build_tests_nodep build_apps_nodep build_engines_nodep \
        depend link-utils
        @ : {- output_off() if $disabled{tests}; "" -}
index b1c5554..0a06b11 100644 (file)
@@ -145,20 +145,22 @@ PROCESSOR= {- $config{processor} -}
 
 # The main targets ###################################################
 
-all: $(GENERATED_MANDATORY) \
+all: build_generated \
      build_libs_nodep build_engines_nodep build_apps_nodep depend
 
-build_libs: $(GENERATED_MANDATORY) build_libs_nodep depend
+build_libs: build_generated build_libs_nodep depend
 build_libs_nodep: $(LIBS)
-build_engines: $(GENERATED_MANDATORY) build_engines_nodep depend
+build_engines: build_generated build_engines_nodep depend
 build_engines_nodep: $(ENGINES)
-build_apps: $(GENERATED_MANDATORY) build_apps_nodep depend
+build_apps: build_generated build_apps_nodep depend
 build_apps_nodep: $(PROGRAMS) $(SCRIPTS)
-build_tests: $(GENERATED_MANDATORY) build_tests_nodep depend
+build_tests: build_generated build_tests_nodep depend
 build_tests_nodep: $(TESTPROGS)
 
+build_generated: $(GENERATED_MANDATORY)
+
 test: tests
-tests: $(GENERATED_MANDATORY) \
+tests: build_generated \
        build_tests_nodep build_apps_nodep build_engines_nodep depend
        @rem {- output_off() if $disabled{tests}; "" -}
        set SRCTOP=$(SRCDIR)