PR: 2727
authorDr. Stephen Henson <steve@openssl.org>
Thu, 23 Feb 2012 13:49:22 +0000 (13:49 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 23 Feb 2012 13:49:22 +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 1b75368966e9c795bcb5aacbf4ffd82005e89265..41859d46fa7f4c1ab5c7e58fd9629e8162b0b17f 100644 (file)
@@ -43,7 +43,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 ); \