2001-10-29 11:31:52 +01: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
|
|
|
|
# best I could come up with. It should probably be enhanced someday
|
|
|
|
# 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 08:27:09 +01:00
|
|
|
CYGBUILD = 1
|
2001-10-29 11:31:52 +01:00
|
|
|
|
2001-10-29 23:17:19 +01:00
|
|
|
# Cygwin tarball build dir (fully-qualified name, gets deleted when done)
|
2001-11-19 10:42:15 +01:00
|
|
|
cygwintmp = $(CURDIR)/tmp_binbuild
|
2001-10-29 11:31:52 +01:00
|
|
|
|
|
|
|
cygwinbin:
|
|
|
|
rm -rf $(cygwintmp)
|
2002-10-04 10:22:57 +02:00
|
|
|
rm -rf $(cygwintmp)-dev
|
2002-10-08 08:50:10 +02:00
|
|
|
$(MAKE) -C $(top_builddir) DESTDIR=$(cygwintmp) install-strip
|
2002-10-18 09:55:38 +02:00
|
|
|
# $(STRIP) $(cygwintmp)/usr/bin/cygcurl-?.dll
|
2002-10-04 10:22:57 +02:00
|
|
|
$(mkinstalldirs) \
|
|
|
|
$(cygwintmp)/usr/doc/Cygwin \
|
|
|
|
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION) \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)/libcurl \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)/examples \
|
|
|
|
$(cygwintmp)-dev/usr/man
|
2002-10-18 09:55:38 +02:00
|
|
|
#
|
|
|
|
# copy some files into the binary install dir
|
2001-11-19 10:42:15 +01:00
|
|
|
cp $(srcdir)/README \
|
2001-10-29 11:31:52 +01:00
|
|
|
$(cygwintmp)/usr/doc/Cygwin/$(PACKAGE)-$(VERSION)-$(CYGBUILD).README
|
2002-10-04 10:22:57 +02:00
|
|
|
cd $(top_srcdir) ; cp CHANGES COPYING README UPGRADE docs/* \
|
|
|
|
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION) ; pwd
|
|
|
|
cd $(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION) ; rm *.1 Makefile*
|
2002-10-18 09:55:38 +02:00
|
|
|
#
|
|
|
|
# copy some files into the -dev install dir, remove some from binary
|
2002-10-04 10:22:57 +02:00
|
|
|
cp $(top_srcdir)/docs/libcurl/*.html \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)/libcurl
|
|
|
|
cp $(top_srcdir)/docs/examples/* \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)/examples
|
|
|
|
rm $(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)/examples/Makefile*
|
|
|
|
cp $(top_srcdir)/docs/examples/Makefile.example \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)/examples
|
|
|
|
mv $(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)/BINDINGS \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
mv $(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)/INTERNALS \
|
|
|
|
$(cygwintmp)-dev/usr/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
mv $(cygwintmp)/usr/include $(cygwintmp)-dev/usr
|
|
|
|
mv $(cygwintmp)/usr/lib $(cygwintmp)-dev/usr
|
|
|
|
mv $(cygwintmp)/usr/man/man3 $(cygwintmp)-dev/usr/man
|
2002-10-18 09:55:38 +02:00
|
|
|
#
|
|
|
|
# create both tar files, and delete tmp folders
|
2002-10-04 10:22:57 +02:00
|
|
|
cd $(cygwintmp) ; tar cjf \
|
|
|
|
$(PACKAGE)-$(VERSION)-$(CYGBUILD).tar.bz2 usr
|
|
|
|
mv $(cygwintmp)/*.tar.bz2 . && rm -rf $(cygwintmp)
|
2002-10-18 09:55:38 +02:00
|
|
|
#
|
2002-10-04 10:22:57 +02:00
|
|
|
cd $(cygwintmp)-dev ; tar cjf \
|
|
|
|
$(PACKAGE)-devel-$(VERSION)-$(CYGBUILD).tar.bz2 usr
|
|
|
|
mv $(cygwintmp)-dev/*.tar.bz2 . && rm -rf $(cygwintmp)-dev
|
2001-11-19 10:42:15 +01:00
|
|
|
|