Fix update and depend in engines/
authorRichard Levitte <levitte@openssl.org>
Sat, 23 May 2015 04:33:41 +0000 (06:33 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 23 May 2015 04:33:41 +0000 (06:33 +0200)
The update: target in engines/ didn't recurse into engines/ccgost.
The update: and depend: targets in engines/ccgost needed a fixup.

Reviewed-by: Rich Salz <rsalz@openssl.org>
engines/Makefile
engines/ccgost/Makefile

index eca15e29543501f79b1219758ba2277c5b0aa887..e9dc1c47cc86886a4a50c37e3fcbb2380636b9e6 100644 (file)
@@ -136,6 +136,7 @@ lint:
 
 update: local_depend
        @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
+       @[ -z "$(THIS)" ] || (set -e; target=update; $(RECURSIVE_MAKE) )
 
 depend: local_depend
        @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
index f3378aa98d715e6fb2536c3244b58a0524bd0e7c..57b9c59f172fbae75e53c04e4820895e66ea85fc 100644 (file)
@@ -64,10 +64,10 @@ install:
 tests:
 
 update: local_depend
-       @[ -z "$(THIS)" ] && $(MAKE) -f $(TOP)/Makefile reflect THIS=$@
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
 
 depend: local_depend
-       @[ -z "$(THIS)" ] && $(MAKE) -f $(TOP)/Makefile reflect THIS=$@
+       @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
 local_depend:
        @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)