]> granicus.if.org Git - curl/commitdiff
fixed install target to create a ca-bundle.crt since we have no longer one in the...
authorGunter Knauf <gk@gknw.de>
Tue, 26 Feb 2008 21:24:03 +0000 (21:24 +0000)
committerGunter Knauf <gk@gknw.de>
Tue, 26 Feb 2008 21:24:03 +0000 (21:24 +0000)
lib/Makefile.netware

index 0dfcc517d0234484ecd40ced241f2eee605eab96..26c8919770e92f2f4d206b16b0c3881b3d001e54 100644 (file)
@@ -74,6 +74,7 @@ ifdef METROWERKS
 else
        CC = gcc
 endif
+PERL   = perl
 # a native win32 awk can be downloaded from here:
 # http://www.gknw.net/development/prgtools/awk-20070501.zip
 AWK    = awk
@@ -170,6 +171,7 @@ ifdef WITH_SSL
        LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
        LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
        IMPORTS += GetProcessSwitchCount RunningProcess
+       INSTDEP += ca-bundle.crt
 endif
 ifdef WITH_ZLIB
        INCLUDES += -I$(ZLIB_PATH)
@@ -241,7 +243,7 @@ dist: all
        -$(RM) $(OBJDIR)/*.o $(OBJDIR)/$(TARGET).map $(OBJDIR)/$(TARGET).ncv
        -$(RM) $(OBJDIR)/$(TARGET).def $(OBJDIR)/version.inc $(XDCDATA)
 
-install: $(INSTDIR) all
+install: $(INSTDIR) all $(INSTDEP)
        @$(CP) $(TARGET).nlm $(INSTDIR)
        @$(CP) $(TARGET).$(LIBEXT) $(INSTDIR)
        @$(CP) ../CHANGES $(INSTDIR)
@@ -249,7 +251,7 @@ install: $(INSTDIR) all
        @$(CP) ../README $(INSTDIR)
        @$(CP) ../RELEASE-NOTES $(INSTDIR)
 ifdef WITH_SSL
-       @$(CP) ca-bundle.crt $(INSTDIR)
+       @-$(CP) ca-bundle.crt $(INSTDIR)/ca-bundle.crt
 endif
 
 clean:
@@ -260,10 +262,10 @@ distclean: clean
        -$(RM) -r $(TARGET).$(LIBEXT) $(TARGET).nlm
 
 $(INSTDIR):
-       @mkdir $(INSTDIR)
+       @mkdir $@
 
 $(OBJDIR):
-       @mkdir $(OBJDIR)
+       @mkdir $@
 
 $(TARGET).$(LIBEXT): $(OBJS)
        @echo Creating $@
@@ -574,4 +576,8 @@ endif
 $(ARES_LIB)/libcares.$(LIBEXT):
        $(MAKE) -C $(ARES_LIB) -f Makefile.netware lib
 
+ca-bundle.crt: mk-ca-bundle.pl
+       @echo Creating $@
+       @-$(PERL) $< -b -n $@
+