PR: 2727
authorDr. Stephen Henson <steve@openssl.org>
Thu, 23 Feb 2012 13:49:35 +0000 (13:49 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 23 Feb 2012 13:49:35 +0000 (13:49 +0000)
Submitted by: Bruce Stephens <bruce.stephens@isode.com>

Use same construct for EXHEADER in srp/Makefile as other makefiles to cope
with possibly empty EXHEADER.

crypto/srp/Makefile

index d37d46c26047bf72e8849fbe088403aff6fbacec..81b419775814436d03210a9d0e6243c8eb9d7e81 100644 (file)
@@ -42,7 +42,8 @@ links:
        @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
 
 install:
-       @for i in $(EXHEADER) ; \
+       @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
+       @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
        do  \
        (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
        chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \