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-01 08:27:09 +01:00
|
|
|
cygwintmp = $(CURDIR)/cygwinbin-builddir
|
2001-10-29 11:31:52 +01:00
|
|
|
|
|
|
|
cygwinbin:
|
|
|
|
rm -rf $(cygwintmp)
|
2001-11-06 09:44:58 +01:00
|
|
|
$(MAKE) -C $(top_builddir) install-strip prefix=$(cygwintmp)/usr
|
2001-10-29 11:31:52 +01:00
|
|
|
$(mkinstalldirs) $(cygwintmp)/usr/doc/Cygwin \
|
|
|
|
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)
|
2001-10-29 23:17:19 +01:00
|
|
|
cd $(top_srcdir); \
|
|
|
|
cp packages/Win32/cygwin/README \
|
2001-10-29 11:31:52 +01:00
|
|
|
$(cygwintmp)/usr/doc/Cygwin/$(PACKAGE)-$(VERSION)-$(CYGBUILD).README
|
|
|
|
cd $(top_srcdir) ; \
|
|
|
|
cp CHANGES LEGAL MPL-1.1.txt README docs/FAQ docs/FEATURES docs/TODO \
|
|
|
|
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
cd $(cygwintmp) ; \
|
|
|
|
tar cjf $(PACKAGE)-$(VERSION)-$(CYGBUILD).tar.bz2 usr
|
|
|
|
mv $(cygwintmp)/$(PACKAGE)-$(VERSION)-$(CYGBUILD).tar.bz2 . \
|
|
|
|
&& rm -rf $(cygwintmp)
|