2001-10-29 05:31:52 -05:00
|
|
|
EXTRA_DIST = README
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build a Cygwin binary tar ball
|
|
|
|
#
|
|
|
|
# Read the README file for details on using this Makefile
|
|
|
|
#
|
|
|
|
# NOTE: As I'm not particularly familiar with Makefiles, this was the
|
2010-02-14 14:40:18 -05:00
|
|
|
# best I could come up with. It should probably be enhanced someday
|
2001-10-29 05:31:52 -05:00
|
|
|
# to actually use the correct target and pre-requisite names, etc...
|
|
|
|
# If anyone else wants to volunteer, feel free ;-)
|
|
|
|
#
|
|
|
|
|
|
|
|
# Cygwin build number (default to "1")
|
2001-11-01 02:27:09 -05:00
|
|
|
CYGBUILD = 1
|
2001-10-29 05:31:52 -05:00
|
|
|
|
2001-10-29 17:17:19 -05:00
|
|
|
# Cygwin tarball build dir (fully-qualified name, gets deleted when done)
|
2001-11-19 04:42:15 -05:00
|
|
|
cygwintmp = $(CURDIR)/tmp_binbuild
|
2001-10-29 05:31:52 -05:00
|
|
|
|
|
|
|
cygwinbin:
|
|
|
|
rm -rf $(cygwintmp)
|
2002-10-04 04:22:57 -04:00
|
|
|
rm -rf $(cygwintmp)-dev
|
2002-10-08 02:50:10 -04:00
|
|
|
$(MAKE) -C $(top_builddir) DESTDIR=$(cygwintmp) install-strip
|
2002-10-18 03:55:38 -04:00
|
|
|
# $(STRIP) $(cygwintmp)/usr/bin/cygcurl-?.dll
|
2002-10-04 04:22:57 -04:00
|
|
|
$(mkinstalldirs) \
|
2004-03-22 17:24:23 -05:00
|
|
|
$(cygwintmp)$(datadir)/doc/Cygwin \
|
|
|
|
$(cygwintmp)$(datadir)/doc/$(PACKAGE)-$(VERSION) \
|
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)/libcurl \
|
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)/examples \
|
|
|
|
$(cygwintmp)-dev$(mandir)
|
2002-10-18 03:55:38 -04:00
|
|
|
#
|
|
|
|
# copy some files into the binary install dir
|
2001-11-19 04:42:15 -05:00
|
|
|
cp $(srcdir)/README \
|
2004-03-22 17:24:23 -05:00
|
|
|
$(cygwintmp)$(datadir)/doc/Cygwin/$(PACKAGE)-$(VERSION)-$(CYGBUILD).README
|
2003-11-04 01:50:50 -05:00
|
|
|
cd $(top_srcdir) ; cp CHANGES COPYING README RELEASE-NOTES docs/* \
|
2004-03-22 17:24:23 -05:00
|
|
|
$(cygwintmp)$(datadir)/doc/$(PACKAGE)-$(VERSION) ; pwd
|
|
|
|
cd $(cygwintmp)$(datadir)/doc/$(PACKAGE)-$(VERSION) ; rm *.1 Makefile*
|
2002-10-18 03:55:38 -04:00
|
|
|
#
|
|
|
|
# copy some files into the -dev install dir, remove some from binary
|
2002-10-04 04:22:57 -04:00
|
|
|
cp $(top_srcdir)/docs/libcurl/*.html \
|
2004-03-22 17:24:23 -05:00
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)/libcurl
|
2002-10-04 04:22:57 -04:00
|
|
|
cp $(top_srcdir)/docs/examples/* \
|
2004-03-22 17:24:23 -05:00
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)/examples
|
|
|
|
rm $(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)/examples/Makefile*
|
2002-10-04 04:22:57 -04:00
|
|
|
cp $(top_srcdir)/docs/examples/Makefile.example \
|
2004-03-22 17:24:23 -05:00
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)/examples
|
|
|
|
mv $(cygwintmp)$(datadir)/doc/$(PACKAGE)-$(VERSION)/BINDINGS \
|
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
mv $(cygwintmp)$(datadir)/doc/$(PACKAGE)-$(VERSION)/INTERNALS \
|
|
|
|
$(cygwintmp)-dev$(datadir)/doc/$(PACKAGE)-$(VERSION)
|
2002-10-04 04:22:57 -04:00
|
|
|
mv $(cygwintmp)/usr/include $(cygwintmp)-dev/usr
|
|
|
|
mv $(cygwintmp)/usr/lib $(cygwintmp)-dev/usr
|
2004-03-22 17:24:23 -05:00
|
|
|
mv $(cygwintmp)$(mandir)/man3 $(cygwintmp)-dev$(mandir)
|
2002-10-18 03:55:38 -04:00
|
|
|
#
|
|
|
|
# create both tar files, and delete tmp folders
|
2002-10-04 04:22:57 -04:00
|
|
|
cd $(cygwintmp) ; tar cjf \
|
|
|
|
$(PACKAGE)-$(VERSION)-$(CYGBUILD).tar.bz2 usr
|
|
|
|
mv $(cygwintmp)/*.tar.bz2 . && rm -rf $(cygwintmp)
|
2002-10-18 03:55:38 -04:00
|
|
|
#
|
2002-10-04 04:22:57 -04:00
|
|
|
cd $(cygwintmp)-dev ; tar cjf \
|
|
|
|
$(PACKAGE)-devel-$(VERSION)-$(CYGBUILD).tar.bz2 usr
|
|
|
|
mv $(cygwintmp)-dev/*.tar.bz2 . && rm -rf $(cygwintmp)-dev
|