Fix the update target and remove duplicate file updates
authorRichard Levitte <levitte@openssl.org>
Fri, 22 May 2015 15:54:06 +0000 (17:54 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 22 May 2015 16:44:33 +0000 (18:44 +0200)
We had updates of certain header files in both Makefile.org and the
Makefile in the directory the header file lived in.  This is error
prone and also sometimes generates slightly different results (usually
just a comment that differs) depending on which way the update was
done.

This removes the file update targets from the top level Makefile, adds
an update: target in all Makefiles and has it depend on the depend: or
local_depend: targets, whichever is appropriate, so we don't get a
double run through the whole file tree.

Reviewed-by: Rich Salz <rsalz@openssl.org>
62 files changed:
Makefile.org
apps/Makefile
crypto/Makefile
crypto/aes/Makefile
crypto/asn1/Makefile
crypto/bf/Makefile
crypto/bio/Makefile
crypto/bn/Makefile
crypto/buffer/Makefile
crypto/camellia/Makefile
crypto/cast/Makefile
crypto/cmac/Makefile
crypto/cms/Makefile
crypto/comp/Makefile
crypto/conf/Makefile
crypto/des/Makefile
crypto/dh/Makefile
crypto/dsa/Makefile
crypto/dso/Makefile
crypto/ec/Makefile
crypto/ecdh/Makefile
crypto/ecdsa/Makefile
crypto/engine/Makefile
crypto/err/Makefile
crypto/evp/Makefile
crypto/hmac/Makefile
crypto/idea/Makefile
crypto/jpake/Makefile
crypto/lhash/Makefile
crypto/md2/Makefile
crypto/md4/Makefile
crypto/md5/Makefile
crypto/mdc2/Makefile
crypto/modes/Makefile
crypto/objects/Makefile
crypto/ocsp/Makefile
crypto/pem/Makefile
crypto/pkcs12/Makefile
crypto/pkcs7/Makefile
crypto/pqueue/Makefile
crypto/rand/Makefile
crypto/rc2/Makefile
crypto/rc4/Makefile
crypto/rc5/Makefile
crypto/ripemd/Makefile
crypto/rsa/Makefile
crypto/seed/Makefile
crypto/sha/Makefile
crypto/srp/Makefile
crypto/stack/Makefile
crypto/store/Makefile
crypto/ts/Makefile
crypto/txt_db/Makefile
crypto/ui/Makefile
crypto/whrlpool/Makefile
crypto/x509/Makefile
crypto/x509v3/Makefile
engines/Makefile
engines/ccgost/Makefile
ssl/Makefile
test/Makefile
tools/Makefile

index 69baf489cbbf2ef66483992acb1f7c8d9aa133c9..ea9f6a0be7c8de7bea4b9eef8ffec7c561850dd7 100644 (file)
@@ -439,6 +439,9 @@ tests: rehash
 report:
        @$(PERL) util/selftest.pl
 
+update: errors stacks util/libeay.num util/ssleay.num apps/openssl-vms.cnf TABLE
+       @set -e; target=update; $(RECURSIVE_BUILD_CMD)
+
 depend:
        @set -e; target=depend; $(RECURSIVE_BUILD_CMD)
 
@@ -466,26 +469,10 @@ util/libeay.num::
 util/ssleay.num::
        $(PERL) util/mkdef.pl ssl update
 
-crypto/objects/obj_dat.h: crypto/objects/obj_dat.pl include/openssl/obj_mac.h
-       $(PERL) crypto/objects/obj_dat.pl include/openssl/obj_mac.h crypto/objects/obj_dat.h
-include/openssl/obj_mac.h: crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num
-       $(PERL) crypto/objects/objects.pl crypto/objects/objects.txt crypto/objects/obj_mac.num include/openssl/obj_mac.h
-crypto/objects/obj_xref.h: crypto/objects/objxref.pl crypto/objects/obj_xref.txt crypto/objects/obj_mac.num
-       $(PERL) crypto/objects/objxref.pl crypto/objects/obj_mac.num crypto/objects/obj_xref.txt >crypto/objects/obj_xref.h
-
-apps/openssl-vms.cnf: apps/openssl.cnf
-       $(PERL) VMS/VMSify-conf.pl < apps/openssl.cnf > apps/openssl-vms.cnf
-
-crypto/bn/bn_prime.h: crypto/bn/bn_prime.pl
-       $(PERL) crypto/bn/bn_prime.pl >crypto/bn/bn_prime.h
-
-
 TABLE: Configure Configurations/*.conf
        (echo 'Output of `Configure TABLE'"':"; \
        $(PERL) Configure TABLE) > TABLE
 
-update: errors stacks util/libeay.num util/ssleay.num crypto/objects/obj_dat.h crypto/objects/obj_xref.h apps/openssl-vms.cnf crypto/bn/bn_prime.h TABLE depend
-
 # Build distribution tar-file. As the list of files returned by "find" is
 # pretty long, on several platforms a "too many arguments" error or similar
 # would occur. Therefore the list of files is temporarily stored into a file
index 29bad618379af70911ac16be88cc5cb4f730ef45..ea7806492eeda57adcb4259ed4c14397a584c30e 100644 (file)
@@ -76,6 +76,9 @@ all:  exe
 
 exe:   $(EXE)
 
+openssl-vms.cnf: openssl.cnf
+       $(PERL) $(TOP)/VMS/VMSify-conf.pl < openssl.cnf > openssl-vms.cnf
+
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
@@ -120,6 +123,8 @@ tests:
 lint:
        echo nope >fluff
 
+update: openssl-vms.cnf depend
+
 depend:
        @if [ -z "$(THIS)" ]; then \
            $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
index b0645fc5dc865b351622aec4c2ae79f5284798fd..99cd65c5bc19e149dcbab49b276e427dda8029ef 100644 (file)
@@ -110,12 +110,17 @@ libs:
 lint:
        @target=lint; $(RECURSIVE_MAKE)
 
-depend:
+update: local_depend
+       @[ -z "$(THIS)" ] || (set -e; target=update; $(RECURSIVE_MAKE) )
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+
+depend: local_depend
+       @[ -z "$(THIS)" ] || (set -e; target=depend; $(RECURSIVE_MAKE) )
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+local_depend:
        @[ -z "$(THIS)" -o -f buildinf.h ] || touch buildinf.h # fake buildinf.h if it does not exist
        @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDE) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
        @[ -z "$(THIS)" -o -s buildinf.h ] || rm buildinf.h
-       @[ -z "$(THIS)" ] || (set -e; target=depend; $(RECURSIVE_MAKE) )
-       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
 
 clean:
        rm -f buildinf.h *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
index d3ce8099643c8b3e4369833004691ff12eb82814..3ae19889b028b27714b4f2390484e7d6bd49f4e4 100644 (file)
@@ -108,6 +108,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 4dee260b5cbcac48ada4b1d2663a00ac1f8a0851..66b0ef2e639aed604fc32f3661a82daf53c2f5f8 100644 (file)
@@ -79,6 +79,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by top Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 928e94d3263fd6db60d55647b97bb95f9e74c03d..dbf5a6435a8cb371d6c381317ddffa31646ff2e3 100644 (file)
@@ -53,6 +53,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index ff00c6e06f07dd481df95ad3725c7e1f65d3eceb..aa297f0a5bb0c8fcf71b807c7ac5995e45e62655 100644 (file)
@@ -57,6 +57,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index c8d3dc2096826a8ff168cee4173cc0810c38aec4..7d55778d36bb441a3f401fbb70b2ca51f49853e2 100644 (file)
@@ -158,6 +158,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: bn_prime.h depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 96261f153f4130d27f76e9d0844bd4c07d078d50..f9d52febb5ae3f01670ad59626c05195eac15e5d 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 2602dbf9658aff85c7f058a7b704ca6bb84826b8..4aa84db543eb6b8cdbf74d8c6f24793a713be781 100644 (file)
@@ -59,6 +59,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 08d24b04fb058fe8fe63fa1bb365b77f337e7f93..f9905ad0dcbd40bb62953418586ca99f8d2df4ec 100644 (file)
@@ -53,6 +53,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 31d50e439c3bcda1620f1b6a9ec75b1a6bc34b2b..0c770c45bcfaf58a77d72cedea92972269c7b284 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 8383fe557d754b96af4f9e9bf976764990ff096a..4924fcf819e6c1bf600d781da48c29b614389664 100644 (file)
@@ -51,6 +51,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 7884f99547288b6cb26fccae25c83aa9b00736a5..5f9b42de9518c11ee64a751b826045f60cf706fc 100644 (file)
@@ -48,6 +48,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
index 1ad24127f5527a4d03252a39eb35c9d1302f6f99..2df0a98ba0f6b4952ed9bee0b2817427ba8f87f6 100644 (file)
@@ -48,6 +48,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
index eb8f3bdd2e8f7323241ebd3beb0bd82b2e5b07c7..56c41f151e3f029bd953f0801e2835b4a8650876 100644 (file)
@@ -74,6 +74,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 14f1efa14afb0d1da20fa68c226b090bb15d4561..f9be501d3ee275e4f5364ffbd07160a992b8bf3f 100644 (file)
@@ -47,6 +47,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 0761873b65c4d99279b10d1a21d3c65964af7b65..aa2b785d8504a0932d227510cc38a54e60026fbf 100644 (file)
@@ -47,6 +47,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 17af757bc0df6607e4b1f3b46d80b82319d94015..b2efd5c2de343787314fbcac9f2e5b009e9d66cd 100644 (file)
@@ -47,6 +47,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 5113faf0afb0632de0c390a52c567d31d3d9d49e..a2c135a04a425a4a0588c29a63f44f01b818bf5b 100644 (file)
@@ -72,6 +72,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index b924e62ae18ffd9fca4b53fd0fd6d6f7c2ded9f1..e980a1c18612fd4856555f6b969d67d48754daa7 100644 (file)
@@ -46,6 +46,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index be6f8490ab1280ffae1d30101bfa18ecd85e3c52..01a7c34865ed2310ccf85c296b181ca821c4e0f3 100644 (file)
@@ -46,6 +46,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index bddabe20c6d9b08471cae3ed3ac9fd4eb9b1b31b..532faddb99a978554e14d42135963355b23a0e0f 100644 (file)
@@ -55,6 +55,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index acbb06e59bbe9e9ece06bde95e15ec0fe6b8fac9..e384e62e2330e5760bd6f519dd0d428335c6e322 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 9cd98cdb8bf7b8c070a3cde468c1c643ca746f8f..c23c39a1aa2a0919f845d14eb30c40427a0ecc80 100644 (file)
@@ -68,6 +68,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
index 1415ebdfd118bc5daad403e76cd935c34889aebf..934631aa17cbc94e510ecd958bf78c2cd64f7302 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 345b60281fff14282e3842fcb24ba05eb8a34a03..db18952d009ddea1ea1fc48082e39a1862999391 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 1f01d73215842fbc91ebf0bcfbacc3e366c65301..3a7b5aecf9295343eb7c6a804a848f1958996bd3 100644 (file)
@@ -27,6 +27,8 @@ lib:  $(LIBOBJ)
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 952f0286e90a1f0a4bd5688b4d2914ea6f4529e4..feb5fa59120c61aed316a53e0b664661c6bf4551 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 153c48ea2f0432d301c95a0ee03e5162c702ecc0..1ca189639e491e4d37443fc87503fe27f5752663 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index b1904c060948dc264feefd0089aab45e4e194b0a..cf5cb8d07705830674ea87b4d4725ab1a2670fc0 100644 (file)
@@ -46,6 +46,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 7dd700f6a062b8fa07cbb011c91cf7e8867722fd..24834f33909ec5f62ca2caee21877fa0e5f06855 100644 (file)
@@ -63,6 +63,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 33f318ff94fbb96b34426f5832b6db186cae0efe..5517a08d581f783c3a74e7af6070ffaca7bd6387 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 69afd8985d236541dc5a2b3d893117da18278da0..ce27c2d8588ae34ada1060f0c9cedd3993d85d81 100644 (file)
@@ -78,6 +78,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 94e1d4ec5fc368058a4d0c6ee5ba42329d80173c..7bc0aac3cf9f8100f0561433e5c22ed5bec30025 100644 (file)
@@ -58,6 +58,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: obj_dat.h ../../include/openssl/obj_mac.h obj_xref.h depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 497275d4ce1572a9daf4f6451449df4697cbd11c..ea5f728a3732402e770aaf2ff966811c742af147 100644 (file)
@@ -48,6 +48,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
index 03bb92c46807b1f7bd84d8dafd5ec1ec06115e4a..ce112c0ef1f002df0e4c015769acf4d0d25e7ccf 100644 (file)
@@ -48,6 +48,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
index 4c08faa7414cfc6f9c301fee8d68b7de7301bfd5..98ec4bfcb6b5b24cc65011c301881aeb0054ddb1 100644 (file)
@@ -51,6 +51,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index f00ff24c6806e34b2a0b2d77271e3ce0304c55fc..96e5a07055c61c37860f23f6feb10f8ca4785a68 100644 (file)
@@ -52,6 +52,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 569c3c96ec365540ebbc90acb166fd7dd9f81b71..b5c8eeaed97bc6103508d55b04d065e0cc2e0369 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 3e09b89915fb73bd4816c8de2b592003d37d5fb5..a0b1245ee32a4a3a4d9fa6cceb1ba222299deecb 100644 (file)
@@ -47,6 +47,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 22e1b4930684bb7000caad34980c01313691fcf7..b07d3c1039411aafebca3c9fe94c93a68e5d862a 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index b8eecefc9c471cf88f116637f2e8fc193c30afc5..5d61aace76fad35f15454655187fca3e9dc5ba77 100644 (file)
@@ -73,6 +73,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 4336e6e0fa003629fe207a89042b5a5994e2cb32..130b4a88d39b58c6b8be2b6bc3dfbd4846a15c6d 100644 (file)
@@ -53,6 +53,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index af4824e67ab92cf622c94288a09f0434740620c4..e86987fce78a6a6660d820ce3416ae82037c376b 100644 (file)
@@ -53,6 +53,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 6c33a0478db8b11c19e99e3fe0818d6ddf76d8f6..65d243d59dd015b53ebe7dd1b9a38c16b2bbcdf1 100644 (file)
@@ -51,6 +51,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index b4ea879b0b078f7b7bbc871e11823a3de40aa8f3..5f13cbe732bd8d1ece6821b8106a290be5d6317e 100644 (file)
@@ -46,6 +46,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index f99a6b333e36f24c28f937439ba39abc4a5b23c1..4a8b77fe518256c0a69d28f4cf5a85ddaa30ea01 100644 (file)
@@ -108,6 +108,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index ff6e905c1306ee5f32583d82942ed35e602218d9..e90adf7a76e6b5b99722cb52d9f384f4a516735f 100644 (file)
@@ -44,6 +44,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
 
index 76f1b2bc2236394189dc5c7429d0e03994d6c752..9a60eec1428ba1a3f5ef432a0a0e0bdea07c0c2d 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 79e31b565f07f520f5f935c49408c943e4653eb1..b73fb30b01c038be3c7c1770f5366f3cdedc9a77 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 2f56229f62b812eafbe485a320b16a078e9fff23..673d01b9c4fc084e8ce70cf8b14af65afd0476bd 100644 (file)
@@ -57,6 +57,8 @@ tags:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
 
index ca967ab090bd39fc3bedd1e6211e2968efb3d07d..6e9d372a4e694704f807a3725ed94d10b2a54d7c 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by top Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 1346d13685e4685d5d2775e919021c606cc68ad9..2a02136f4073b35e555313ba86f360a8d7df8579 100644 (file)
@@ -45,6 +45,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 31c63ad7bedcc6bce30224b2777787e10df0d1e0..aafb46717e2442d231794225e9c0776135aa960c 100644 (file)
@@ -58,6 +58,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index a6b2b7c847698fb3837eb272baa06a0310765cf1..7e0e594e7315ee98c155921319347ecc5f96b3e2 100644 (file)
@@ -57,6 +57,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index d7be020fa06bf3f3cc07440cafc24b6c5042d2b5..fb1085b4b0cd1134d25c2c67b510cd3b2e93ac08 100644 (file)
@@ -55,6 +55,8 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
+update: depend
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
index 769a4e533f72482a6387fba433af6160531ad0f2..eca15e29543501f79b1219758ba2277c5b0aa887 100644 (file)
@@ -134,12 +134,14 @@ lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
        @target=lint; $(RECURSIVE_MAKE)
 
-depend:
-       @if [ -z "$(THIS)" ]; then \
-           $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
-       fi
-       @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
+update: local_depend
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+
+depend: local_depend
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
        @[ -z "$(THIS)" ] || (set -e; target=depend; $(RECURSIVE_MAKE) )
+local_depend:
+       @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
 
 dclean:
        $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
index 1ce18485f05cc3c46b36bdbe4a37ca0e905a874b..f3378aa98d715e6fb2536c3244b58a0524bd0e7c 100644 (file)
@@ -63,12 +63,13 @@ install:
 
 tests:
 
-depend:
-       @if [ -z "$(THIS)" ]; then \
-           $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
-       else \
-           $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
-       fi
+update: local_depend
+       @[ -z "$(THIS)" ] && $(MAKE) -f $(TOP)/Makefile reflect THIS=$@
+
+depend: local_depend
+       @[ -z "$(THIS)" ] && $(MAKE) -f $(TOP)/Makefile reflect THIS=$@
+local_depend:
+       @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
 
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
index ad2f99f3679daa9aadff18513e9ffeaa7f950d95..d1fc049dd8f0127faf497c9b227a3752703dd2ee 100644 (file)
@@ -71,12 +71,13 @@ tests:
 lint:
        lint -DLINT $(INCLUDES) $(SRC)>fluff
 
-depend:
-       @if [ -z "$(THIS)" ]; then \
-           $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
-       else \
-           $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
-       fi
+update: local_depend
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+
+depend: local_depend
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+local_depend:
+       @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
 
 dclean:
        $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
index da97db784ce3dc4a3b6fd5a2a7b847d6faa6b0e9..86a251fa52391877de2ea85ded8b6f6d53970ae3 100644 (file)
@@ -392,12 +392,13 @@ test_constant_time: $(CONSTTIMETEST)$(EXE_EXT)
        @echo $(START) $@
        ../util/shlib_wrap.sh ./$(CONSTTIMETEST)
 
-depend:
-       @if [ -z "$(THIS)" ]; then \
-           $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
-       else \
-           $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC); \
-       fi
+update: local_depend
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+
+depend: local_depend
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+local_depend:
+       @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(SRC)
 
 dclean:
        $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
index edd7fc5d06207c08cec980512105cd96b692bca2..d4752f833b9b2421116f07789cd75cbcb7883350 100644 (file)
@@ -53,6 +53,8 @@ tags:
 
 errors:
 
+update: depend
+
 depend:
 
 dclean: