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 d37d46c..81b4197 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 ); \