blob: 885480ed29e894b84a342e857f209094286edc8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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")
# NOTE: I tried using this to default CYGBUILD to 1, but couldn't make it work)
#ifndef CYGBUILD
# CYGBUILD = 1
#endif
# temp dir for use while building the tarball (fully-qualified)
cygwintmp := $(CURDIR)/cygwinbin-builddir
cygwinbin:
rm -rf $(cygwintmp)
@(echo Installing to the temporary build dir...)
$(MAKE) -C $(top_builddir) install prefix=$(cygwintmp)/usr
$(mkinstalldirs) $(cygwintmp)/usr/doc/Cygwin \
$(cygwintmp)/usr/doc/$(PACKAGE)-$(VERSION)
cp $(top_srcdir)/packages/Win32/cygwin/README \
$(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)
|