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 ffc519895d77ebc10554d2aaadb35fda6621f68c..110c49ce0b4a84903a4ccc551941d7792d682422 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)