4
# Build a Cygwin binary tar ball
6
# Read the README file for details on using this Makefile
8
# NOTE: As I'm not particularly familiar with Makefiles, this was the
9
# best I could come up with. It should probably be enhanced someday
10
# to actually use the correct target and pre-requisite names, etc...
11
# If anyone else wants to volunteer, feel free ;-)
14
# Cygwin build number (default to "1")
17
# Cygwin tarball build dir (fully-qualified name, gets deleted when done)
18
cygwintmp = $(CURDIR)/tmp_binbuild
22
$(MAKE) -C $(top_builddir) install-strip prefix=$(cygwintmp)/usr
23
$(STRIP) $(cygwintmp)/usr/bin/cygcurl-?.dll
24
$(mkinstalldirs) $(cygwintmp)/usr/doc/Cygwin \
25
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)
27
$(cygwintmp)/usr/doc/Cygwin/$(PACKAGE)-$(VERSION)-$(CYGBUILD).README
28
cd $(top_srcdir) ; cp CHANGES LEGAL MPL-1.1.txt MITX.txt README \
29
docs/FAQ docs/FEATURES docs/TODO \
30
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)
32
tar cjf $(PACKAGE)-$(VERSION)-$(CYGBUILD).tar.bz2 usr
33
mv $(cygwintmp)/$(PACKAGE)-$(VERSION)-$(CYGBUILD).tar.bz2 . \
34
&& rm -rf $(cygwintmp)