summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-05-22 17:54:06 +0200
committerRichard Levitte <levitte@openssl.org>2015-05-22 18:44:33 +0200
commit0f539dc1a2f45580435c39dada44dd276e79cb88 (patch)
treebb72d0787997435b7151733f0db43f2c729742fc /crypto
parent8757bf83775afe10cb18d15943248a75bcc6a24b (diff)
Fix the update target and remove duplicate file updates
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile11
-rw-r--r--crypto/aes/Makefile2
-rw-r--r--crypto/asn1/Makefile2
-rw-r--r--crypto/bf/Makefile2
-rw-r--r--crypto/bio/Makefile2
-rw-r--r--crypto/bn/Makefile2
-rw-r--r--crypto/buffer/Makefile2
-rw-r--r--crypto/camellia/Makefile2
-rw-r--r--crypto/cast/Makefile2
-rw-r--r--crypto/cmac/Makefile2
-rw-r--r--crypto/cms/Makefile2
-rw-r--r--crypto/comp/Makefile2
-rw-r--r--crypto/conf/Makefile2
-rw-r--r--crypto/des/Makefile2
-rw-r--r--crypto/dh/Makefile2
-rw-r--r--crypto/dsa/Makefile2
-rw-r--r--crypto/dso/Makefile2
-rw-r--r--crypto/ec/Makefile2
-rw-r--r--crypto/ecdh/Makefile2
-rw-r--r--crypto/ecdsa/Makefile2
-rw-r--r--crypto/engine/Makefile2
-rw-r--r--crypto/err/Makefile2
-rw-r--r--crypto/evp/Makefile2
-rw-r--r--crypto/hmac/Makefile2
-rw-r--r--crypto/idea/Makefile2
-rw-r--r--crypto/jpake/Makefile2
-rw-r--r--crypto/lhash/Makefile2
-rw-r--r--crypto/md2/Makefile2
-rw-r--r--crypto/md4/Makefile2
-rw-r--r--crypto/md5/Makefile2
-rw-r--r--crypto/mdc2/Makefile2
-rw-r--r--crypto/modes/Makefile2
-rw-r--r--crypto/objects/Makefile2
-rw-r--r--crypto/ocsp/Makefile2
-rw-r--r--crypto/pem/Makefile2
-rw-r--r--crypto/pkcs12/Makefile2
-rw-r--r--crypto/pkcs7/Makefile2
-rw-r--r--crypto/pqueue/Makefile2
-rw-r--r--crypto/rand/Makefile2
-rw-r--r--crypto/rc2/Makefile2
-rw-r--r--crypto/rc4/Makefile2
-rw-r--r--crypto/rc5/Makefile2
-rw-r--r--crypto/ripemd/Makefile2
-rw-r--r--crypto/rsa/Makefile2
-rw-r--r--crypto/seed/Makefile2
-rw-r--r--crypto/sha/Makefile2
-rw-r--r--crypto/srp/Makefile2
-rw-r--r--crypto/stack/Makefile2
-rw-r--r--crypto/store/Makefile2
-rw-r--r--crypto/ts/Makefile2
-rw-r--r--crypto/txt_db/Makefile2
-rw-r--r--crypto/ui/Makefile2
-rw-r--r--crypto/whrlpool/Makefile2
-rw-r--r--crypto/x509/Makefile2
-rw-r--r--crypto/x509v3/Makefile2
55 files changed, 116 insertions, 3 deletions
diff --git a/crypto/Makefile b/crypto/Makefile
index b0645fc5dc..99cd65c5bc 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -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
diff --git a/crypto/aes/Makefile b/crypto/aes/Makefile
index d3ce809964..3ae19889b0 100644
--- a/crypto/aes/Makefile
+++ b/crypto/aes/Makefile
@@ -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)
diff --git a/crypto/asn1/Makefile b/crypto/asn1/Makefile
index 4dee260b5c..66b0ef2e63 100644
--- a/crypto/asn1/Makefile
+++ b/crypto/asn1/Makefile
@@ -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)
diff --git a/crypto/bf/Makefile b/crypto/bf/Makefile
index 928e94d326..dbf5a6435a 100644
--- a/crypto/bf/Makefile
+++ b/crypto/bf/Makefile
@@ -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)
diff --git a/crypto/bio/Makefile b/crypto/bio/Makefile
index ff00c6e06f..aa297f0a5b 100644
--- a/crypto/bio/Makefile
+++ b/crypto/bio/Makefile
@@ -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)
diff --git a/crypto/bn/Makefile b/crypto/bn/Makefile
index c8d3dc2096..7d55778d36 100644
--- a/crypto/bn/Makefile
+++ b/crypto/bn/Makefile
@@ -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)
diff --git a/crypto/buffer/Makefile b/crypto/buffer/Makefile
index 96261f153f..f9d52febb5 100644
--- a/crypto/buffer/Makefile
+++ b/crypto/buffer/Makefile
@@ -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)
diff --git a/crypto/camellia/Makefile b/crypto/camellia/Makefile
index 2602dbf965..4aa84db543 100644
--- a/crypto/camellia/Makefile
+++ b/crypto/camellia/Makefile
@@ -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)
diff --git a/crypto/cast/Makefile b/crypto/cast/Makefile
index 08d24b04fb..f9905ad0dc 100644
--- a/crypto/cast/Makefile
+++ b/crypto/cast/Makefile
@@ -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)
diff --git a/crypto/cmac/Makefile b/crypto/cmac/Makefile
index 31d50e439c..0c770c45bc 100644
--- a/crypto/cmac/Makefile
+++ b/crypto/cmac/Makefile
@@ -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)
diff --git a/crypto/cms/Makefile b/crypto/cms/Makefile
index 8383fe557d..4924fcf819 100644
--- a/crypto/cms/Makefile
+++ b/crypto/cms/Makefile
@@ -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)
diff --git a/crypto/comp/Makefile b/crypto/comp/Makefile
index 7884f99547..5f9b42de95 100644
--- a/crypto/comp/Makefile
+++ b/crypto/comp/Makefile
@@ -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)
diff --git a/crypto/conf/Makefile b/crypto/conf/Makefile
index 1ad24127f5..2df0a98ba0 100644
--- a/crypto/conf/Makefile
+++ b/crypto/conf/Makefile
@@ -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)
diff --git a/crypto/des/Makefile b/crypto/des/Makefile
index eb8f3bdd2e..56c41f151e 100644
--- a/crypto/des/Makefile
+++ b/crypto/des/Makefile
@@ -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)
diff --git a/crypto/dh/Makefile b/crypto/dh/Makefile
index 14f1efa14a..f9be501d3e 100644
--- a/crypto/dh/Makefile
+++ b/crypto/dh/Makefile
@@ -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)
diff --git a/crypto/dsa/Makefile b/crypto/dsa/Makefile
index 0761873b65..aa2b785d85 100644
--- a/crypto/dsa/Makefile
+++ b/crypto/dsa/Makefile
@@ -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)
diff --git a/crypto/dso/Makefile b/crypto/dso/Makefile
index 17af757bc0..b2efd5c2de 100644
--- a/crypto/dso/Makefile
+++ b/crypto/dso/Makefile
@@ -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)
diff --git a/crypto/ec/Makefile b/crypto/ec/Makefile
index 5113faf0af..a2c135a04a 100644
--- a/crypto/ec/Makefile
+++ b/crypto/ec/Makefile
@@ -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)
diff --git a/crypto/ecdh/Makefile b/crypto/ecdh/Makefile
index b924e62ae1..e980a1c186 100644
--- a/crypto/ecdh/Makefile
+++ b/crypto/ecdh/Makefile
@@ -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)
diff --git a/crypto/ecdsa/Makefile b/crypto/ecdsa/Makefile
index be6f8490ab..01a7c34865 100644
--- a/crypto/ecdsa/Makefile
+++ b/crypto/ecdsa/Makefile
@@ -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)
diff --git a/crypto/engine/Makefile b/crypto/engine/Makefile
index bddabe20c6..532faddb99 100644
--- a/crypto/engine/Makefile
+++ b/crypto/engine/Makefile
@@ -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)
diff --git a/crypto/err/Makefile b/crypto/err/Makefile
index acbb06e59b..e384e62e23 100644
--- a/crypto/err/Makefile
+++ b/crypto/err/Makefile
@@ -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)
diff --git a/crypto/evp/Makefile b/crypto/evp/Makefile
index 9cd98cdb8b..c23c39a1aa 100644
--- a/crypto/evp/Makefile
+++ b/crypto/evp/Makefile
@@ -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)
diff --git a/crypto/hmac/Makefile b/crypto/hmac/Makefile
index 1415ebdfd1..934631aa17 100644
--- a/crypto/hmac/Makefile
+++ b/crypto/hmac/Makefile
@@ -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)
diff --git a/crypto/idea/Makefile b/crypto/idea/Makefile
index 345b60281f..db18952d00 100644
--- a/crypto/idea/Makefile
+++ b/crypto/idea/Makefile
@@ -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)
diff --git a/crypto/jpake/Makefile b/crypto/jpake/Makefile
index 1f01d73215..3a7b5aecf9 100644
--- a/crypto/jpake/Makefile
+++ b/crypto/jpake/Makefile
@@ -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)
diff --git a/crypto/lhash/Makefile b/crypto/lhash/Makefile
index 952f0286e9..feb5fa5912 100644
--- a/crypto/lhash/Makefile
+++ b/crypto/lhash/Makefile
@@ -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)
diff --git a/crypto/md2/Makefile b/crypto/md2/Makefile
index 153c48ea2f..1ca189639e 100644
--- a/crypto/md2/Makefile
+++ b/crypto/md2/Makefile
@@ -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)
diff --git a/crypto/md4/Makefile b/crypto/md4/Makefile
index b1904c0609..cf5cb8d077 100644
--- a/crypto/md4/Makefile
+++ b/crypto/md4/Makefile
@@ -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)
diff --git a/crypto/md5/Makefile b/crypto/md5/Makefile
index 7dd700f6a0..24834f3390 100644
--- a/crypto/md5/Makefile
+++ b/crypto/md5/Makefile
@@ -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)
diff --git a/crypto/mdc2/Makefile b/crypto/mdc2/Makefile
index 33f318ff94..5517a08d58 100644
--- a/crypto/mdc2/Makefile
+++ b/crypto/mdc2/Makefile
@@ -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)
diff --git a/crypto/modes/Makefile b/crypto/modes/Makefile
index 69afd8985d..ce27c2d858 100644
--- a/crypto/modes/Makefile
+++ b/crypto/modes/Makefile
@@ -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)
diff --git a/crypto/objects/Makefile b/crypto/objects/Makefile
index 94e1d4ec5f..7bc0aac3cf 100644
--- a/crypto/objects/Makefile
+++ b/crypto/objects/Makefile
@@ -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)
diff --git a/crypto/ocsp/Makefile b/crypto/ocsp/Makefile
index 497275d4ce..ea5f728a37 100644
--- a/crypto/ocsp/Makefile
+++ b/crypto/ocsp/Makefile
@@ -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)
diff --git a/crypto/pem/Makefile b/crypto/pem/Makefile
index 03bb92c468..ce112c0ef1 100644
--- a/crypto/pem/Makefile
+++ b/crypto/pem/Makefile
@@ -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)
diff --git a/crypto/pkcs12/Makefile b/crypto/pkcs12/Makefile
index 4c08faa741..98ec4bfcb6 100644
--- a/crypto/pkcs12/Makefile
+++ b/crypto/pkcs12/Makefile
@@ -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)
diff --git a/crypto/pkcs7/Makefile b/crypto/pkcs7/Makefile
index f00ff24c68..96e5a07055 100644
--- a/crypto/pkcs7/Makefile
+++ b/crypto/pkcs7/Makefile
@@ -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)
diff --git a/crypto/pqueue/Makefile b/crypto/pqueue/Makefile
index 569c3c96ec..b5c8eeaed9 100644
--- a/crypto/pqueue/Makefile
+++ b/crypto/pqueue/Makefile
@@ -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)
diff --git a/crypto/rand/Makefile b/crypto/rand/Makefile
index 3e09b89915..a0b1245ee3 100644
--- a/crypto/rand/Makefile
+++ b/crypto/rand/Makefile
@@ -47,6 +47,8 @@ tests:
lint:
lint -DLINT $(INCLUDES) $(SRC)>fluff
+update: depend