Add install target to crypto/jpake/Makefile
authorDr. Stephen Henson <steve@openssl.org>
Fri, 31 Oct 2008 12:06:25 +0000 (12:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 31 Oct 2008 12:06:25 +0000 (12:06 +0000)
crypto/jpake/Makefile

index ffc5198..110c49c 100644 (file)
@@ -24,6 +24,14 @@ links:
        @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
        @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
 
+install:
+       @[ -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 ); \
+       done;
+
 depend:
        @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
        $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)